OFFSET
1,2
COMMENTS
FORMULA
a(n) = a(n/5) if n==0 (mod 5); a(n) = a(n - floor(n/5)) otherwise.
PROG
(PARI) a(n, m=5)=while(n>=m, if(n%m, n-=n\m, n\=m)); n \\ M. F. Hasler, Mar 07 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Mar 07 2015
STATUS
approved