login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A285103 Number of odd terms on row n of A053632: a(n) = A000120(A068052(n)). 6

%I #28 Mar 07 2024 16:21:11

%S 1,2,4,6,6,12,12,16,22,28,32,30,36,52,48,62,62,68,88,104,116,108,128,

%T 128,132,168,160,168,200,204,240,232,242,284,300,324,332,348,352,352,

%U 412,440,400,466,460,516,496,566,582,580,608,646,676,736,716,782,728,816,832,856,916,924,948,1034,1008,1044,1096,1154,1112,1212,1204,1188

%N Number of odd terms on row n of A053632: a(n) = A000120(A068052(n)).

%H Alois P. Heinz, <a href="/A285103/b285103.txt">Table of n, a(n) for n = 0..5000</a> (first 257 terms from Antti Karttunen)

%F a(n) = A000120(A068052(n)).

%F a(n) = A001221(A285102(n)) = A001222(A285102(n)).

%F A285104(n) = 2^n - a(n).

%F A000124(n) = a(n) + A285105(n).

%p b:= proc(n) option remember; `if`(n=0, 1,

%p (t-> Bits[Xor](2^n*t, t))(b(n-1)))

%p end:

%p a:= n-> convert(Bits[Split](b(n)), `+`):

%p seq(a(n), n=0..71); # _Alois P. Heinz_, Mar 07 2024

%o (Scheme) (define (A285103 n) (A000120 (A068052 n)))

%o (Python) # uses [A000120]

%o l=[1]

%o for n in range(1, 101):

%o x = l[n - 1]

%o l.append(x^(2**n*x))

%o print([A000120(k) for k in l]) # _Indranil Ghosh_, Jun 28 2017

%Y Number of odd term on row n of A053632.

%Y Cf. A000120, A000124, A001221, A001222, A068052, A285102, A285104, A285105.

%K nonn

%O 0,2

%A _Antti Karttunen_, Apr 15 2017

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 18:58 EDT 2024. Contains 371781 sequences. (Running on oeis4.)