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.

A382217 a(n) is the least k > 0 such that the factorial base expansion of n starts with that of k.

Original entry on oeis.org

1, 1, 1, 4, 5, 1, 1, 1, 1, 1, 1, 4, 4, 5, 5, 16, 17, 18, 19, 20, 21, 22, 23, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 16, 16, 17, 17, 64, 65, 66, 67, 68, 69, 70, 71, 18, 18, 19, 19, 76, 77, 20
Offset: 1

Views

Author

Rémy Sigrist, Mar 19 2025

Keywords

Examples

			The first terms, in decimal and in factorial base, are:
  n   a(n)  fact(n)  fact(a(n))
  --  ----  -------  ----------
   1     1  1        1
   2     1  1,0      1
   3     1  1,1      1
   4     4  2,0      2,0
   5     5  2,1      2,1
   6     1  1,0,0    1
   7     1  1,0,1    1
   8     1  1,1,0    1
   9     1  1,1,1    1
  10     1  1,2,0    1
  11     1  1,2,1    1
  12     4  2,0,0    2,0
  13     4  2,0,1    2,0
  14     5  2,1,0    2,1
  15     5  2,1,1    2,1
		

Crossrefs

Cf. A000030, A265334, A382184, A382218 (fixed points).

Programs

  • PARI
    \\ See Links section.

Formula

a(n) = 1 iff n belongs to A265334.
a(n) <= A382184(n).
a(n) = n iff n belongs to A382218.