All pastes #409254 Raw Edit

GOro

public cpp v1 · immutable
#409254 ·published 2007-03-25 15:19 UTC
rendered paste body
#include <cctype>#include <iostream>#include <cmath>int phi (int x, int i) {   if ( i > 15 ) {       return 0;   } else {        std::cout << x; std::cout << std::endl;        x = x - phi(x, i + 1) * pow(2,i + 1);        return floor( x / pow(2, i));   }}int main(){  std::cout << phi(129,4);}