OFFSET
1,4
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
Wikipedia, Decimal separator (subsection Radix point)
EXAMPLE
a(16) = 2, as the 16th digit in the fractional part of the base-3 expansion of 1/16 = 0.001200120012001200120012... is 2.
MATHEMATICA
a = {}; Do[a = Append[a, Mod[ Floor[1/n * 3^n], 3] ], {n, 1, 100} ]; a
PROG
(PARI) A323591(n) = (floor((3^n)*(1/n))%3); \\ Antti Karttunen, Dec 09 2021
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Derek J. Graves, Jan 18 2019, on behalf of Joseph A. Stocke
EXTENSIONS
Definition clarified by Antti Karttunen, Dec 09 2021
STATUS
approved