login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A240883
Central terms of the triangle in A240857.
4
0, 0, 2, 1, 2, 0, 2, 2, 2, 2, 4, 1, 2, 1, 3, 3, 2, 2, 4, 3, 4, 0, 2, 2, 2, 2, 4, 2, 3, 2, 4, 4, 2, 2, 4, 3, 4, 2, 4, 4, 4, 4, 6, 1, 2, 1, 3, 3, 2, 2, 4, 3, 4, 1, 3, 3, 3, 3, 5, 3, 4, 3, 5, 5, 2, 2, 4, 3, 4, 2, 4, 4, 4, 4, 6, 3, 4, 3, 5, 5, 4, 4, 6, 5, 6, 0
OFFSET
0,3
LINKS
FORMULA
a(n) = A240857(2*n,n) = A046818(n) - 1.
MATHEMATICA
a[n_] := DigitCount[3*n + 1, 2, 1] - 1; Array[a, 100, 0] (* Amiram Eldar, Aug 01 2023 *)
PROG
(Haskell)
a240883 n = a240857 (2 * n) n
CROSSREFS
Sequence in context: A335881 A239703 A029338 * A048272 A112329 A335884
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Apr 14 2014
STATUS
approved