Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A075341
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A075341 a(1) = 1, a(2n) is the smallest composite number == 1 mod (a(2n-1)) and a(2n+1) is the smallest prime == 1 (mod a(2n)). +0
2
1, 4, 5, 6, 7, 8, 17, 18, 19, 20, 41, 42, 43, 44, 89, 90, 181, 182, 547, 548, 1097, 1098, 7687, 7688, 15377, 15378, 30757, 30758, 276823, 276824, 553649, 553650, 2768251, 2768252, 8304757, 8304758, 99657097, 99657098, 199314197, 199314198 (list; graph; listen)
OFFSET

1,2

COMMENT

a(k) = b(k-5) for k > 8 where b(r) is the r-th term of A075340.

MATHEMATICA

a[1] = 1; a[2] = 4; a[n_] := a[n] = Block[{k = a[n - 1] + 1, m = a[n - 1]}, If[OddQ@n, While[ !PrimeQ@k || Mod[k, m] != 1, k += m]; k, While[PrimeQ@k || Mod[k, m] != 1, k += m]; k]]; Array[a, 40] (* Robert G. Wilson v Sep 21 2006 *)

CROSSREFS

Cf. A075340.

See also: Always look for prime: A061092. Always look for composite: A061766.

Adjacent sequences: A075338 A075339 A075340 this_sequence A075342 A075343 A075344

Sequence in context: A059709 A071623 A140293 this_sequence A143789 A068521 A068318

KEYWORD

nonn

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Sep 18 2002

EXTENSIONS

More terms from David Wasserman (dwasserm(AT)earthlink.net), Jan 16 2005

page 1

Search completed in 0.005 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 13 20:18 EDT 2008. Contains 145016 sequences.


AT&T Labs Research