OFFSET
1,3
COMMENTS
It appears that all nonzero terms in this sequence are divisible by 3 unless n is divisible by 9.
EXAMPLE
1/7 = 0.142857142857142857... and digit-cycle is 142857, the sum of these integers is 27 so a(7)=27.
MATHEMATICA
a[n_] := Block[{d = RealDigits[1/n][[1, -1]]}, If[ IntegerQ@d, 0, Plus @@ d]]; Array[a, 100] (* Giovanni Resta, May 15 2016 *)
CROSSREFS
KEYWORD
base,nonn,easy
AUTHOR
Neville Styles, Mar 16 2016
STATUS
approved