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-1 of 1 results.

A353340 Smallest positive number k such that there are exactly n integers b with k > b > 1 where the base-b representation of k is periodic.

Original entry on oeis.org

1, 3, 5, 15, 10, 36, 80, 60, 120, 168, 260, 252, 360, 630, 504, 720, 840, 1512, 1260, 1800, 1680, 2340, 3276, 3120, 3360, 2520, 9072, 7200, 6300, 12096, 7920, 5040, 9240, 7560, 20520, 25920, 15840, 10080
Offset: 0

Views

Author

Felix Fröhlich, Apr 14 2022

Keywords

Crossrefs

Cf. A353339.

Programs

  • PARI
    is(n, b) = for (w=1, oo, my (d=digits(n, b^w)); if (#d<=1, return (0), #Set(d)==1, return (1))) \\ after Rémy Sigrist in A321513
    a353339(n) = my(i=0); for(b=2, n-1, if(is(n, b), i++)); i
    a(n) = for(k=1, oo, if(a353339(k)==n, return(k)))
Showing 1-1 of 1 results.