login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A190338
Consider the iteration k -> 3*k mod 10^(number of decimal digits in n). Sequence gives the number of times the iteration has to be applied to n before returning to n.
1
1, 4, 4, 4, 4, 1, 4, 4, 4, 4, 4, 20, 20, 20, 20, 4, 20, 20, 20, 20, 4, 20, 20, 20, 20, 2, 20, 20, 20, 20, 4, 20, 20, 20, 20, 4, 20, 20, 20, 20, 4, 20, 20, 20, 20, 4, 20, 20, 20, 20, 1, 20, 20, 20, 20, 4, 20, 20, 20, 20, 4, 20, 20, 20, 20, 4, 20, 20, 20, 20
OFFSET
0,2
COMMENTS
Pickover called a sequence of this type an "Odin sequence". It seems that a(n) = 4*5^(A055642(n) - 1) whenever n mod 5 <> 0.
REFERENCES
Clifford A. Pickover, A Passion for Mathematics, Wiley, 2005; see p. 124.
LINKS
MAPLE
a := proc(n) local c, k: c:=0:k:=n: do k:=3*k mod (10^length(n)):c:=c+1: if(k=n)then return c: fi: od: end: seq(a(n), n=0..150);
MATHEMATICA
Flatten[Table[Position[NestList[Mod[3#, 10^IntegerLength[n]]&, n, 40], n][[2]]-1, {n, 0, 70}]] (* Harvey P. Dale, Mar 05 2013 *)
CROSSREFS
Cf. A055642.
Sequence in context: A171408 A071907 A172369 * A199177 A320086 A074803
KEYWORD
nonn,easy,base
AUTHOR
Nathaniel Johnston, May 09 2011
STATUS
approved