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!)
A335110 a(n) = Sum_{k=0..n} (Stirling1(n,k) mod 2) * k. 0
0, 1, 3, 5, 6, 8, 18, 22, 12, 14, 30, 34, 36, 40, 84, 92, 24, 26, 54, 58, 60, 64, 132, 140, 72, 76, 156, 164, 168, 176, 360, 376, 48, 50, 102, 106, 108, 112, 228, 236, 120, 124, 252, 260, 264, 272, 552, 568, 144, 148, 300, 308, 312, 320, 648, 664, 336, 344, 696, 712, 720 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
G.f.: x * g(x) + (3/4) * x * (1 + x) * g'(x), where g(x) = Product_{k>=0} (1 + 2 * x^(2^(k + 1))).
a(n) = floor((3*n + 1)/2) * 2^(A000120(floor(n/2)) - 1).
MATHEMATICA
Table[Sum[Mod[StirlingS1[n, k], 2] k, {k, 0, n}], {n, 0, 60}]
Table[Floor[(3 n + 1)/2] 2^(DigitCount[Floor[n/2], 2, 1] - 1), {n, 0, 60}]
PROG
(PARI) a(n) = sum(k=0, n, (stirling(n, k, 1) % 2) * k); \\ Michel Marcus, May 23 2020
CROSSREFS
Sequence in context: A039014 A102989 A005623 * A152989 A308051 A261028
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, May 23 2020
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 19 13:40 EDT 2024. Contains 371792 sequences. (Running on oeis4.)