login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo

Thanks to everyone who made a donation during our annual appeal!
To see the list of donors, or make a donation, see the OEIS Foundation home page.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A091860 a(1)=1, a(n)=sum(i=1,n-1,b(i)) where b(i)=0 if a(i) and a(n-i) are both even, b(i)=1 otherwise. 0

%I

%S 1,1,2,3,4,4,6,5,6,6,8,6,8,8,8,7,8,8,10,8,10,10,10,8,10,10,10,10,10,

%T 10,10,9,10,10,12,10,12,12,12,10,12,12,12,12,12,12,12,10,12,12,12,12,

%U 12,12,12,12,12,12,12,12,12,12,12,11,12,12,14,12,14,14,14,12,14,14,14,14,14

%N a(1)=1, a(n)=sum(i=1,n-1,b(i)) where b(i)=0 if a(i) and a(n-i) are both even, b(i)=1 otherwise.

%F n>1 a(2n)=a(n)+2; if n is a power of 2, a(2n+1)=1+a(2n); if n is the sum of 2 distinct power of 2, a(2n+1)=2+a(2n); a(2n+1)=a(2n) otherwise

%o (PARI) an[1]=1;for(n=2,100,an[n]=sum(i=1,n-1,max(a(i)%2,a(n-i)%2)))

%Y Cf. A018900, A072823.

%K nonn

%O 1,3

%A _Benoit Cloitre_, Mar 16 2004

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 15 12:14 EST 2021. Contains 340187 sequences. (Running on oeis4.)