cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A153004 First differences of toothpick numbers A153003.

Original entry on oeis.org

1, 3, 3, 3, 6, 9, 6, 3, 6, 9, 9, 12, 21, 24, 12, 3, 6, 9, 9, 12, 21, 24, 15, 12, 21, 27, 30, 45, 66, 60, 24, 3, 6, 9, 9, 12, 21, 24, 15, 12, 21, 27, 30, 45, 66, 60, 27, 12, 21, 27, 30, 45, 66, 63, 42, 45, 69, 84, 105, 156, 192, 144, 48, 3
Offset: 1

Views

Author

Omar E. Pol, Jan 02 2009

Keywords

Examples

			Triangle begins:
1;
3,3;
3,6,9,6;
3,6,9,9,12,21,24,12;
3,6,9,9,12,21,24,15,12,21,27,30,45,66,60,24;
		

Crossrefs

Toothpick sequence: A139250.

Programs

  • Mathematica
    A139250[n_] := A139250[n] = Module[{m, k}, If[n == 0, Return[0]]; m = 2^(Length[IntegerDigits[n, 2]] - 1); k = (2 m^2 + 1)/3; If[n == m, k, k + 2 A139250[n - m] + A139250[n - m + 1] - 1]];
    b[n_] := If[n == 0, 0, (3/4) (A139250[n + 1] - 3) + 1];
    b /@ Range[0, 64] // Differences (* Jean-François Alcover, Apr 06 2020 *)