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.

Showing 1-2 of 2 results.

A245400 Number of nonnegative integers with property that their base 9/8 expansion (see A024656) has n digits.

Original entry on oeis.org

9, 9, 9, 9, 9, 9, 9, 9, 9, 18, 18, 18, 18, 27, 27, 27, 36, 36, 45, 45, 54, 63, 72, 81, 90, 99, 108, 126, 144, 162, 180, 198, 225, 252, 288, 324, 360, 405, 459, 513, 576, 648, 729, 819, 927, 1044, 1170, 1314, 1485, 1665, 1872, 2106, 2376, 2673, 3006, 3384, 3807
Offset: 1

Views

Author

Tom Edgar, Jul 21 2014

Keywords

Examples

			a(2) = 9 since 80, 81, 82, 83, 84, 85, 86, 87, 88 are the base 9/8 representations of 9-17 respectively and these are the only integers with 2 digits.
		

Crossrefs

Programs

  • Sage
    A=[1]
    for i in [1..100]:
        A.append(ceil(((9-8)/8)*sum(A)))
    [9*x for x in A]

Formula

a(n) = 9*A120194(n).

A245338 Sum of digits of n written in fractional base 9/8.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 8, 9, 10, 11, 12, 13, 14, 15, 16, 15, 16, 17, 18, 19, 20, 21, 22, 23, 21, 22, 23, 24, 25, 26, 27, 28, 29, 26, 27, 28, 29, 30, 31, 32, 33, 34, 30, 31, 32, 33, 34, 35, 36, 37, 38, 33, 34, 35, 36, 37, 38, 39, 40, 41, 35, 36, 37, 38, 39
Offset: 0

Views

Author

Tom Edgar, Jul 18 2014

Keywords

Comments

The base 9/8 expansion is unique and thus the sum of digits function is well-defined.

Examples

			In base 9/8 the number 16 is represented by 87 and so a(16) = 8 + 7 = 15.
		

Crossrefs

Programs

  • Mathematica
    a[n_] := a[n] = If[n == 0, 0, a[8 * Floor[n/9]] + Mod[n, 9]]; Array[a, 100, 0] (* Amiram Eldar, Aug 04 2025 *)
  • PARI
    a(n) = if(n == 0, 0, a(n\9 * 8) + n % 9); \\ Amiram Eldar, Aug 04 2025
  • Sage
    # uses [basepqsum from A245355]
    [basepqsum(9,8,i) for i in [0..100]]
    

Formula

a(n) = A007953(A024656(n)).
Showing 1-2 of 2 results.