OFFSET
0,3
COMMENTS
It appears that the graph is very close to the graph from the Flower garden sequence (A323650), (see the conjecture 2 and also the Plot 2 in the Links section).
LINKS
Amiram Eldar, Table of n, a(n) for n = 0..10000
David Applegate, Omar E. Pol and N. J. A. Sloane, The Toothpick Sequence and Other Sequences from Cellular Automata, Congressus Numerantium, Vol. 206 (2010), 157-191, which is also available at arXiv:1004.3036v2
Steven R. Finch, Toothpicks and Live Cells, July 21, 2015. [Cached copy, with permission of the author]
OEIS Plot 2, A390468 vs A323650
FORMULA
MATHEMATICA
A139250[n_] := A139250[n] = If[n <= 1, n, (2*#^2 + 1)/3 + 2*A139250[n - #] + A139250[n - # + 1] - 1 & [2^(BitLength[n] - 1)]]; (* After David A. Corneth at A139250 *)
A147562list[nmax_] := Accumulate[Join[{0, 1}, 4*3^(DigitCount[Range[nmax - 1], 2, 1] - 1)][[;; nmax + 1]]];
A390468list[nmax_] := (A147562list[nmax] + Array[A139250, nmax + 1, 0])/2;
A390468list[100] (* Paolo Xausa, Dec 16 2025 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Nov 06 2025
STATUS
approved
