Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A127699
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A127699 Length of period of the sequence (1^1^1^..., 2^2^2^..., 3^3^3^..., 4^4^4^..., ...) modulo n. +0
1
1, 2, 6, 4, 20, 6, 42, 8, 18, 20, 220, 12, 156, 42, 120, 16, 272, 18, 342, 40, 84, 220, 5060, 24, 200, 156, 54, 84, 2436, 120 (list; graph; listen)
OFFSET

1,2

COMMENT

For any positive integers a and m the sequence a, a^a, a^a^a, a^a^a^a,... becomes eventually constant modulo m. So the remainder of a^a^a^... modulo n is well defined.

FORMULA

a(n) = lcm(n, a(phi(n))), where phi is Euler's totient function.

EXAMPLE

a(10)=20 because the last digit of 1^1^1^.. is 1; the sequence 2,2^2,2^2^2,.. ends with 2,4,6,6,...; the sequence 3,3^3,3^3^3,... with 3,7,7,...; 4,4^4,4^4^4,... with 4,6,6,...; and so on. We get as last digits 1,6,7,6,5,6,3,6,9,0, 1,6,3,6,5,6,7,6,9,0 and then the pattern repeats.

CROSSREFS

Cf. A000010.

Sequence in context: A100695 A100140 A009262 this_sequence A124838 A088659 A052100

Adjacent sequences: A127696 A127697 A127698 this_sequence A127700 A127701 A127702

KEYWORD

easy,nonn

AUTHOR

Jan Fricke (jfricke(AT)math.uni-jena.de), Apr 11 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 July 25 07:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research