OFFSET
1,4
COMMENTS
a(p) = 1 if p is a prime; a(3^k) = 0.
REFERENCES
Amarnath Murthy, "On the divisors of Smarandache Unary Sequence", Smarandache Notions Journal, 1-2-3, vol. 11, 2000.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = A002275(n) mod n.
EXAMPLE
1111111 mod 7 = 1.
MATHEMATICA
Table[Mod[FromDigits[PadRight[{}, n, 1]], n], {n, 90}] (* Harvey P. Dale, Jun 19 2022 *)
PROG
(PARI) a(n) = (10^n - 1)/9 % n; \\ Michel Marcus, Jul 03 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Jun 17 2004
STATUS
approved