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.

A343504 a(n) is the least common multiple of the nonzero digits in factorial base expansion of n.

Original entry on oeis.org

1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 6, 6, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 6, 6, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 6, 6, 6, 6, 6, 6, 3, 3, 3, 3, 6, 6, 3, 3, 3, 3, 6, 6, 6, 6, 6
Offset: 0

Views

Author

Rémy Sigrist, Apr 17 2021

Keywords

Comments

a(0) = 1 by convention.

Examples

			For n = 1000000:
- the factorial base expansion of 1000000 is "2, 6, 6, 2, 5, 1, 2, 2, 0",
- so a(1000000) = lcm(1, 2, 5, 6) = 30.
		

Crossrefs

Programs

  • PARI
    a(n) = { my (v=1); for (r=2, oo, if (n==0, return (v), n%r, v=lcm(v, n%r)); n\=r) }

Formula

a(n) = 1 iff n belongs to A059590.