OFFSET
1,4
COMMENTS
For the definition of 'g-dic value of 1/n' see a comment on A244416. In the Mahler reference, p. 7, the present exponent of 6 is there called f = f(1/n) for g = 6.
REFERENCES
Kurt Mahler, p-adic numbers and their functions, second ed., Cambridge University Press, 1981.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..19683
FORMULA
a(n) = 0 if n is congruent 1 or 5 (mod 6). a(n) = max(A007814(n), A007949(n)) if n == 0 (mod 6). a(n) = A007814(n) if n == 2 or 4 (mod 6) and a(n) = A007949(n) if n == 3 (mod 6).
From Amiram Eldar, Aug 19 2024: (Start)
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = 13/10. (End)
EXAMPLE
See A244416.
MATHEMATICA
a[n_] := Max[IntegerExponent[n, {2, 3}]]; Array[a, 100] (* Amiram Eldar, Aug 19 2024 *)
PROG
(PARI) A244417(n) = max(valuation(n, 2), valuation(n, 3)); \\ Antti Karttunen, Dec 04 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wolfdieter Lang, Jul 02 2014
STATUS
approved