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!)
A157793 Convolution of numbers of binary zeros and ones. 1
0, 1, 1, 3, 2, 6, 6, 11, 8, 15, 15, 25, 21, 29, 29, 41, 33, 44, 43, 61, 53, 66, 67, 89, 76, 88, 85, 107, 96, 112, 112, 139, 119, 135, 130, 161, 144, 165, 166, 205, 180, 197, 191, 227, 209, 235, 237, 283, 250, 267, 256, 295, 269, 295, 293, 343, 308, 329, 319, 365, 339 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
FORMULA
a(n) = Sum_{i=0..n} A023416(i)*A000120(n-i).
MATHEMATICA
a[n_] := Sum[DigitCount[i, 2, 0]*DigitCount[n - i, 2, 1], {i, 0, n}]; Array[a, 100, 0] (* Amiram Eldar, Jul 16 2023 *)
PROG
(Haskell)
a157793 n = a157793_list !! n
a157793_list = f [head a023416_list] $ tail a023416_list where
f zs (x:xs) = (sum $ zipWith (*) zs a000120_list) : f (x:zs) xs
-- Reinhard Zumkeller, Mar 31 2015
CROSSREFS
Sequence in context: A347743 A023360 A154028 * A096375 A062200 A114208
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Mar 06 2009
STATUS
approved

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 23 05:37 EDT 2024. Contains 371906 sequences. (Running on oeis4.)