OFFSET
2,2
COMMENTS
LINKS
Rémy Sigrist, Table of n, a(n) for n = 2..456
Wikipedia, Factorial number system (Fractional values)
Rémy Sigrist, Colored logarithmic scatterplot of the first 5000 terms (where the color is function of A299160(n))
FORMULA
EXAMPLE
The first terms, alongside the factorial base representations of a(n) and of 1/n, are:
n a(n) fact(a(n)) fact(1/n)
-- ---------- ----------------------- ------------
2 1 1 0.1
3 4 2 0 0.0 2
4 14 2 1 0 0.0 1 2
5 98 4 0 1 0 0.0 1 0 4
6 2 1 0 0.0 1
7 4386 6 0 2 3 0 0 0.0 0 3 2 0 6
8 18 3 0 0 0.0 0 3
9 324 2 3 2 0 0 0.0 0 2 3 2
10 60 2 2 0 0 0.0 0 2 2
11 36457092 10 0 4 1 3 5 0 2 0 0 0.0 0 2 0 5 3 1 4 0 10
12 12 2 0 0 0.0 0 2
13 5769254382 12 0 5 8 4 5 2 1 4 1 0 0 0.0 0 1 4 1 2 5 4 8 5 0 12
14 2598 3 3 3 1 0 0 0.0 0 1 3 3 3
15 78 3 1 0 0 0.0 0 1 3
16 414 3 2 1 0 0 0.0 0 1 2 3
PROG
(PARI) a(n) = my (v=0, q=1/n); for (r=2, oo, q *= r; v += floor(q) * (r-1)!; q = frac(q); if (q==0, return (v)))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Feb 04 2018
STATUS
approved