Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A130172
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A130172 Let f(i) = prime( f(i - 1) (modulo 10^n) ) with f(0) = 1; a(n) is the term where the period of the sequence f(i) begins to repeat. +0
1
2, 4, 2, 62, 221, 301, 1062, 860 (list; graph; listen)
OFFSET

1,1

EXAMPLE

For a(1), the sequence is 1, 2, 3, 5, 11, 2, 3, 5, 11, 2, 3,

5, 11, ... The sequence has period {2, 3, 5, 11} so a(1) = 2.

For a(2) see the A112279: 1, 2, 3, 5, 11, 31, 127, 103, 5,

11, 31, 127, 103, 5, 11, ..., . This sequence has a cyclic length of 5,

the terms {5, 11, 31, 127, 103} and the first term 5 first appears at

the fourth term.

MATHEMATICA

f[n_] := Block[{k = 1, a}, a[0] = 1; a[i_] := a[i] = Prime[Mod[a[i - 1], 10^n]]; While[t = Table[a[i], {i, 0, k - 1}]; MemberQ[t, a[k]] == False, k++ ]; Flatten[ Position[t, a[k]]][[1]]]; Array[ f, 8]

CROSSREFS

Sequence in context: A100944 A059890 A006496 this_sequence A029589 A121819 A134138

Adjacent sequences: A130169 A130170 A130171 this_sequence A130173 A130174 A130175

KEYWORD

nonn,more

AUTHOR

Robert G. Wilson v (rgwv(AT)rgwv.com), May 13 2007

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 10 12:37 EST 2009. Contains 170569 sequences.


AT&T Labs Research