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.

A245415 Number of nonnegative integers with property that their base 5/2 expansion (see A024632) has n digits.

Original entry on oeis.org

5, 10, 25, 60, 150, 375, 940, 2350, 5875, 14685, 36715, 91785, 229465, 573660, 1434150, 3585375, 8963440, 22408600, 56021500, 140053750, 350134375, 875335935, 2188339840, 5470849600, 13677124000, 34192810000, 85482025000, 213705062500, 534262656250
Offset: 1

Views

Author

Hailey R. Olafson, Jul 21 2014

Keywords

Examples

			a(2) = 10 because  20, 21, 22, 23, 24, 40, 41, 42, 43 and 44 are the base 5/2 expansions for the integers 5, 6, 7, 8, 9, 10, 11, 12, 13 and 14 respectively and these are the only integers with 2 digits.
		

Crossrefs

Programs

  • Sage
    A=[1]
    for i in [1..60]:
        A.append(ceil(((5-2)/2)*sum(A)))
    [5*x for x in A]

A245341 Sum of digits of n written in fractional base 5/2.

Original entry on oeis.org

0, 1, 2, 3, 4, 2, 3, 4, 5, 6, 4, 5, 6, 7, 8, 3, 4, 5, 6, 7, 5, 6, 7, 8, 9, 4, 5, 6, 7, 8, 6, 7, 8, 9, 10, 8, 9, 10, 11, 12, 4, 5, 6, 7, 8, 6, 7, 8, 9, 10, 5, 6, 7, 8, 9, 7, 8, 9, 10, 11, 9, 10, 11, 12, 13, 5, 6, 7, 8, 9, 7, 8, 9, 10, 11, 6, 7, 8, 9, 10, 8, 9
Offset: 0

Views

Author

James Van Alstine, Jul 18 2014

Keywords

Comments

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

Examples

			In base 5/2 the number 7 is represented by 22 and so a(7) = 2+2 = 4.
		

Crossrefs

Programs

  • Maple
    a:= proc(n) `if`(n<1, 0, irem(n, 5, 'q')+a(2*q)) end:
    seq(a(n), n=0..81);  # Alois P. Heinz, May 14 2021
  • Mathematica
    a[n_] := a[n] = If[n == 0, 0, a[2 * Floor[n/5]] + Mod[n, 5]]; Array[a, 100, 0] (* Amiram Eldar, Jul 30 2025 *)
  • PARI
    a(n) = if(n == 0, 0, a(n\5 * 2) + n % 5); \\ Amiram Eldar, Jul 30 2025
  • Sage
    # uses [basepqsum from A245355]
    [basepqsum(5,2,y) for y in [0..200]]
    

Formula

a(n) = A007953(A024632(n)). - Amiram Eldar, Jul 30 2025

Extensions

Definition corrected by Georg Fischer, May 14 2021
Showing 1-2 of 2 results.