login
This site is supported by donations to The OEIS Foundation.

 

Logo

Please make a donation to keep the OEIS running. We are now in our 55th year. In the past year we added 12000 new sequences and reached 8000 citations (which often say "discovered thanks to the OEIS"). We need to raise money to hire someone to manage submissions, which would reduce the load on our editors and speed up editing.
Other ways to donate

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A066340 Fermat's triangle: T(n,m) = m^phi(n) mod n; n >= 2; 1 <= m <= n-1, where phi is Euler's totient function. 4
1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 4, 3, 4, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 6, 1, 6, 5, 6, 1, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 9, 4, 1, 0, 1, 4, 9, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 1, 8, 1, 8, 7, 8, 1, 8, 1, 8, 1, 1, 1, 6, 1, 10, 6, 1, 1, 6, 10, 1, 6, 1, 1 (list; table; graph; refs; listen; history; text; internal format)
OFFSET

2,12

COMMENTS

Fermat's little theorem states that T(n,m)=1 for all m relatively prime to n.

LINKS

Alois P. Heinz, Rows n = 2..201, flattened

EXAMPLE

Triangle begins:

1;

1, 1;

1, 0, 1;

1, 1, 1, 1;

1, 4, 3, 4,  1;

1, 1, 1, 1,  1, 1;

1, 0, 1, 0,  1, 0, 1;

1, 1, 0, 1,  1, 0, 1, 1;

1, 6, 1, 6,  5, 6, 1, 6, 1;

1, 1, 1, 1,  1, 1, 1, 1, 1,  1;

1, 4, 9, 4,  1, 0, 1, 4, 9,  4, 1;

1, 1, 1, 1,  1, 1, 1, 1, 1,  1, 1, 1;

1, 8, 1, 8,  1, 8, 7, 8, 1,  8, 1, 8, 1;

1, 1, 6, 1, 10, 6, 1, 1, 6, 10, 1, 6, 1, 1;

MATHEMATICA

Table[PowerMod[ #, EulerPhi[n], n]&/@ Range[n-1], {n, 2, 32} ]

PROG

(PARI) T(n, k) = lift(Mod(k, n)^eulerphi(n));

tabl(nn) = for (n=2, nn, for (k=1, n-1, print1(T(n, k), ", ")); print); \\ Michel Marcus, Aug 13 2019

CROSSREFS

Cf. A000010.

Sequence in context: A048156 A070431 A070511 * A195597 A143505 A245727

Adjacent sequences:  A066337 A066338 A066339 * A066341 A066342 A066343

KEYWORD

easy,nonn,tabl

AUTHOR

Wouter Meeussen, Jan 01 2002

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified December 8 12:07 EST 2019. Contains 329862 sequences. (Running on oeis4.)