_Benoit Cloitre (benoit7848c(AT)orange.fr), _, Mar 11 2004
_Benoit Cloitre (benoit7848c(AT)orange.fr), _, Mar 11 2004
nonn,new
nonn
Benoit Cloitre (abmtbenoit7848c(AT)wanadooorange.fr), Mar 11 2004
nonn,new
nonn
Benoit Cloitre (abcloitreabmt(AT)modulonetwanadoo.fr), Mar 11 2004
nonn,new
nonn
Benoit Cloitre (abcloitre(AT)wanadoomodulonet.fr), Mar 11 2004
a(1)=1, a(2n)=1+a(n)(mod 2); a(2n+1)=2*a(2n)+1.
1, 2, 5, 1, 3, 2, 5, 2, 5, 2, 5, 1, 3, 2, 5, 1, 3, 2, 5, 1, 3, 2, 5, 2, 5, 2, 5, 1, 3, 2, 5, 2, 5, 2, 5, 1, 3, 2, 5, 2, 5, 2, 5, 1, 3, 2, 5, 1, 3, 2, 5, 1, 3, 2, 5, 2, 5, 2, 5, 1, 3, 2, 5, 1, 3, 2, 5, 1, 3, 2, 5, 2, 5, 2, 5, 1, 3, 2, 5, 1, 3, 2, 5, 1, 3, 2, 5, 2, 5, 2, 5, 1, 3, 2, 5, 2, 5, 2, 5, 1, 3, 2, 5, 2, 5
1,2
a(n) mod 2 = A035263(n)
(PARI) a(n)=if(n<2, 1, if(n%2, 2*a(n-1)+1, 1+a(n/2)%2))
nonn
Benoit Cloitre (abcloitre(AT)wanadoo.fr), Mar 11 2004
approved