[go: up one dir, main page]

login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
Revision History for A195637 (Underlined text is an addition; strikethrough text is a deletion.)

Showing entries 1-10 | older changes
A195637 Number of distinct residues of k^n (mod n), k=0..n-1.
(history; published version)
#28 by Michael De Vlieger at Wed Oct 11 22:22:42 EDT 2023
STATUS

proposed

approved

#27 by Andrew Howroyd at Wed Oct 11 22:09:55 EDT 2023
STATUS

editing

proposed

#26 by Andrew Howroyd at Wed Oct 11 22:07:22 EDT 2023
PROG

(PARI) a(n)=if(isprime(n), n, #Set(vector(n, i, (, lift(Mod(i-1, n)^n))) \\ _)))) \\ _Charles R Greathouse IV_, Jul 31 2016

STATUS

approved

editing

Discussion
Wed Oct 11 22:09
Andrew Howroyd: Obvious fix to PARI
#25 by Alois P. Heinz at Tue Aug 22 21:37:20 EDT 2023
STATUS

editing

approved

#24 by Alois P. Heinz at Tue Aug 22 21:36:38 EDT 2023
EXAMPLE

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

MAPLE

a:= n-> nops ({({seq ((k&^n mod n, k=0..n-1)}):

seq ((a(n), n=1..100);

STATUS

approved

editing

#23 by Alois P. Heinz at Tue Aug 22 21:35:51 EDT 2023
STATUS

proposed

approved

#22 by Michel Marcus at Tue Aug 22 09:08:50 EDT 2023
STATUS

editing

proposed

#21 by Michel Marcus at Tue Aug 22 09:08:42 EDT 2023
EXAMPLE

0;

0, 1;

0, 1, 2;

0, 1, 0, 1;

0, 1, 2, 3, 4;

0, 1, 4, 3, 4, 1;

0, 1, 2, 3, 4, 5, 6;

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

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

0, 1, 4, 9, 6, 5, 6, 9, 4, 1;

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10;

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

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12;

STATUS

proposed

editing

#20 by Chai Wah Wu at Tue Aug 22 06:49:04 EDT 2023
STATUS

editing

proposed

#19 by Chai Wah Wu at Tue Aug 22 06:48:56 EDT 2023
PROG

(Python)

def A195637(n): return len({pow(x, n, n) for x in range(n)}) # Chai Wah Wu, Aug 22 2023

STATUS

approved

editing

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 30 07:09 EDT 2024. Contains 375532 sequences. (Running on oeis4.)