login
A323591
n-th digit after the radix point in the base-3 expansion of 1/n.
3
0, 1, 0, 2, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 2, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 2, 0, 2, 0, 1, 2, 0, 0, 1, 2, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 2, 0, 1, 0, 0, 0, 1, 0, 0, 2, 1, 0, 0, 0, 1, 0, 0, 0, 2, 2, 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 2, 0, 1, 0, 2
OFFSET
1,4
LINKS
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
Column 3 of A322392.
Sequence in context: A349645 A237996 A203951 * A105348 A016406 A370078
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