Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A086685
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A086685 Number of 1<=i<n such that i*n+1 is prime. +0
1
0, 1, 1, 2, 1, 4, 2, 2, 3, 5, 3, 6, 4, 5, 5, 5, 3, 10, 2, 6, 6, 9, 4, 9, 5, 9, 7, 11, 4, 17, 3, 10, 9, 12, 9, 15, 4, 9, 11, 13, 5, 21, 7, 11, 10, 16, 8, 19, 6, 18, 13, 17, 5, 23, 10, 18, 9, 16, 8, 27, 7, 15, 13, 16, 13, 29, 9, 18, 13, 27, 9, 26, 10, 19, 18, 17, 11, 29, 11, 23, 18, 22, 11, 32 (list; graph; listen)
OFFSET

1,4

EXAMPLE

For n=10, i=1,3,4,6,7 give primes, so a(10)=5

MATHEMATICA

f[n_] := Length[ Select[ Range[n - 1], PrimeQ[n# + 1] & ]]; Table[ f[n], {n, 1, 85}]

PROGRAM

(PARI) nphi(n)=local(c); c=0; for (i=1, n-1, if (isprime(i*n+1), c++)); c for(i=1, 60, print1(", "nphi(i)))

CROSSREFS

Sequence in context: A080100 A001176 A136693 this_sequence A094571 A104733 A130584

Adjacent sequences: A086682 A086683 A086684 this_sequence A086686 A086687 A086688

KEYWORD

nonn

AUTHOR

Jon Perry (perry(AT)globalnet.co.uk), Jul 28 2003

EXTENSIONS

Extended by Robert G. Wilson v (rgwv(AT)rgwv.com), Jul 31 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 July 26 23:19 EDT 2008. Contains 142293 sequences.


AT&T Labs Research