Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A100797
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A100797 For each n let n_2 be the smallest number bigger than n+1 and coprime to n*(n+1) and let n_3 be the smallest number bigger than n_2 and coprime to n*(n+1)*n_2. The sequence lists numbers n such that n*(n+1)+n_2*n_3 and -n*(n+1) + n_2*n_3 are prime. +0
1
1, 2, 3, 4, 5, 9, 11, 12, 15, 17, 19, 23, 26, 29, 30, 32, 33, 35, 43, 45, 61, 64, 71, 73, 75, 76, 83, 84, 85, 86, 90, 91, 95, 101, 107, 108, 110, 114, 121, 124, 132, 136, 137, 140, 142, 143, 163, 169, 175, 179, 182, 184, 198, 201, 211, 212, 219, 222, 223, 231, 234 (list; graph; listen)
OFFSET

1,2

EXAMPLE

Let n = 5: The smallest number bigger than 6 and coprime to 5*6 is 7. The smallest number bigger than 7 and coprime to 5*6*7 is 11. Therefore n_2 = 7 and n_3 = 11. Since 5*6 + 7*11 and -5*6 + 7*11 are both primes, 5 is an element of the sequence.

MATHEMATICA

e = {}; For[n = 1, n < 250, n++, a = n; b = n + 1; c = n + 2; While[Not[GCD[c, n]*GCD[c, n + 1] == 1], c++ ]; d = c + 1; While[Not[GCD[d, a]*GCD[d, b]*GCD[d, c] == 1], d++ ]; If[PrimeQ[a*b + c*d], If[PrimeQ[ - a*b + c*d], AppendTo[e, n]]]]; e

CROSSREFS

Sequence in context: A015837 A075177 A062096 this_sequence A139441 A093305 A065817

Adjacent sequences: A100794 A100795 A100796 this_sequence A100798 A100799 A100800

KEYWORD

nonn,less

AUTHOR

J. M. Bergot (thekingfishb(AT)yahoo.ca), May 26 2007

EXTENSIONS

Edited, corrected and extended by Stefan Steinerberger (stefan.steinerberger(AT)gmail.com), Nov 24 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 August 19 23:53 EDT 2008. Contains 142930 sequences.


AT&T Labs Research