A135293 Differences between successive numbers whose sum of digits in base 3 is 2.
2, 2, 2, 4, 2, 6, 10, 2, 6, 18, 28, 2, 6, 18, 54, 82, 2, 6, 18, 54, 162, 244, 2, 6, 18, 54, 162, 486, 730, 2, 6, 18, 54, 162, 486, 1458, 2188, 2, 6, 18, 54, 162, 486, 1458, 4374, 6562, 2, 6, 18, 54, 162, 486, 1458, 4374, 13122
Offset: 0
Examples
triangle begins: 2 2 2 4 2 6 10 2 6 18 28 2 6 18 54 82 2 6 18 54 162 244 2 6 18 54 162 486.
Links
- G. C. Greubel, Table of n, a(n) for the first 50 rows
Crossrefs
Cf. A052216.
Programs
-
Mathematica
T[0, 0] := 2; T[n_, 0] := 3^(n - 1) + 1; T[n_, m_] := 2*3^(m - 1); Table[T[n, m], {n, 0, 5}, {m, 0, n}] (* G. C. Greubel, Oct 09 2016 *) Join[{2},Differences[Select[Range[50000],Total[IntegerDigits[#,3]]==2&]]] (* Harvey P. Dale, Jul 04 2019 *)
Formula
T(n,m) = 2*3^(m-1) = A025192(m) for m>0. T(n,0) = 2*A124302(n). - Franklin T. Adams-Watters, Sep 29 2011
Extensions
Edited by Franklin T. Adams-Watters, Sep 29 2011
Comments