OFFSET
0,5
LINKS
FORMULA
a(A276156(n)) = 1 for all n >= 1.
a(n) <= A276150(n) for all n >= 0.
From Antti Karttunen, Oct 29 2019: (Start)
(End)
EXAMPLE
MATHEMATICA
With[{b = MixedRadix[Reverse@ Prime@ Range@ 20]}, Array[Max@ IntegerDigits[#, b] &, 105, 0]] (* Michael De Vlieger, Oct 30 2019 *)
PROG
(PARI) A328114(n) = { my(i=0, m=0, pr=1, nextpr); while((n>0), i=i+1; nextpr = prime(i)*pr; if((n%nextpr), m = max(m, (n%nextpr)/pr); n-=(n%nextpr)); pr=nextpr); (m); };
(PARI) A328114(n) = { my(s=0, p=2); while(n, s = max(s, (n%p)); n = n\p; p = nextprime(1+p)); (s); }; \\ (Faster, no unnecessary construction of primorials) - Antti Karttunen, Oct 29 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Oct 12 2019
STATUS
approved