Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A078788
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A078788 Smallest m such that (n-1)*m+1 mod n = 0, or 0 if no such number exists. +0
1
0, 0, 3, 0, 5, 3, 7, 0, 3, 5, 11, 3, 13, 7, 3, 0, 17, 3, 19, 5, 3, 11, 23, 3, 5, 13, 3, 7, 29, 3, 31, 0, 3, 17, 5, 3, 37, 19, 3, 5, 41, 3, 43, 11, 3, 23, 47, 3, 7, 5, 3, 13, 53, 3, 5, 7, 3, 29, 59, 3, 61, 31, 3, 0, 5, 3, 67, 17, 3, 5, 71, 3, 73, 37, 3, 19, 7, 3, 79, 5, 3, 41, 83, 3, 5, 43, 3, 11 (list; graph; listen)
OFFSET

1,3

COMMENT

Terms are primes or 0.

EXAMPLE

a(5) is representing 11. 11*(3-1)+1=23=2 mod 3, 11*(5-1)+1=45=0 mod 5, hence a(5)=5

PROGRAM

(PARI) forstep (m=3, 1000, 2, forstep (n=3, 1000, 2, if (((n-1)*m+1)%n==0, print1(n", "); break); if (n==999, print1("0, "))))

CROSSREFS

Adjacent sequences: A078785 A078786 A078787 this_sequence A078789 A078790 A078791

Sequence in context: A088191 A108500 A076109 this_sequence A005069 A037284 A002123

KEYWORD

nonn

AUTHOR

Jon Perry (perry(AT)globalnet.co.uk), Jan 10 2003

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 October 15 09:18 EDT 2008. Contains 145015 sequences.


AT&T Labs Research