OFFSET
2,4
LINKS
Rémy Sigrist, Table of n, a(n) for n = 2..10000
Rémy Sigrist, Scatterplot of (n, n-a(n)) for n = 2..50000
FORMULA
a(n) < n.
EXAMPLE
For n = 8:
- the digits of 8 in bases b = 2..8 and the corresponding products are:
b digits product
- ------ -------
2 "1000" 0
3 "22" 4
4 "20" 0
5 "13" 3
6 "12" 2
7 "11" 1
8 "10" 0
- hence a(8) = 4.
PROG
(PARI) a(n) = vecmax(vector(n-1, b, vecprod(digits(n, b+1))))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Aug 25 2019
STATUS
approved