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.

A245399 Number of nonnegative integers with property that their base 6/5 expansion (see A024638) has n digits.

Original entry on oeis.org

6, 6, 6, 6, 6, 6, 12, 12, 12, 18, 18, 24, 30, 36, 42, 48, 60, 72, 84, 102, 126, 150, 180, 216, 258, 312, 372, 444, 534, 642, 768, 924, 1110, 1332, 1596, 1914, 2298, 2760, 3312, 3972, 4770, 5724, 6864, 8238, 9888, 11862, 14238, 17082, 20502, 24600, 29520, 35424
Offset: 1

Views

Author

Hailey R. Olafson, Jul 21 2014

Keywords

Examples

			a(3) = 6 because 540, 541, 542, 543, 544 and 545 are the base 6/5 expansions for the integers 12, 13, 14, 15, 16 and 17 respectively and these are the only integers with 3 digits.
		

Crossrefs

Programs

  • Mathematica
    A120170[n_]:= A120170[n] = If[n==1, 1, Ceiling[Sum[A120170[j], {j, n-1}]/5]]; Table[6*A120170[n], {n, 60}] (* G. C. Greubel, Aug 19 2019 *)
  • Sage
    A=[1]
    for i in [1..60]:
        A.append(ceil(((6-5)/5)*sum(A)))
    [6*x for x in A]

Formula

a(n) = 6*A120170(n).