OFFSET
1,1
LINKS
Sean A. Irvine, Table of n, a(n) for n = 1..10000
FORMULA
Conjecture: sequence always exists (a(123456789)=61, a(2^30)=70) and there is a constant C=2.8... such that sum(k=1, n, a(k)) is asymptotic to C*n*Log(n)
EXAMPLE
c(1)=1 => 3 => 9 => 28 => 8 => 2 => 0 => 0 => 0 ... hence a(1)=7.
PROG
(PARI) a(n)=if(n<0, 0, s=n; t=2; while(floor(s/Pi^(-1)^s)>0, s=floor(s/Pi^(-1)^s); t++); t )
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, Aug 22 2002
STATUS
approved