Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A094045
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A094045 Alternate composite and prime numbers not included earlier such that every concatenation of a pair of terms is a prime: a(2n) is prime and a(2n-1) is nonprime. +0
3
1, 3, 49, 19, 9, 7, 27, 11, 51, 13, 21, 29, 39, 17, 33, 23, 57, 37, 69, 47, 87, 31, 63, 43, 91, 61, 99, 41, 77, 53, 81, 67, 93, 71, 119, 59, 123, 73, 121, 97, 117, 79, 111, 103, 141, 101, 159, 113, 143, 89, 153, 83, 177, 109, 133, 157, 189, 127, 207, 139, 169, 151, 171, 131 (list; graph; listen)
OFFSET

1,2

COMMENT

Conjecture: 2 and 5 are the only two nonmembers.

EXAMPLE

a(3)=49 => 349 is a prime but not necessarily 1349, which by the way it

is not.

MATHEMATICA

p = Prime[ Range[ 500]]; np = Drop[ Complement[ Range[ 500], p], 1]; a[1] = 1; a[n_] := a[n] = Block[{k = 1, q = IntegerDigits[a[n - 1]]}, If[ EvenQ[n], While[ !PrimeQ[ FromDigits[ Join[q, IntegerDigits[ p[[k]] ]]]], k++ ]; q = p[[k]]; p = Delete[p, k]; q, While[ !PrimeQ[ FromDigits[ Join[q, IntegerDigits[ np[[k]] ]]]], k++ ]; q = np[[k]]; np = Delete[np, k]; q]]; Table[ a[n], {n, 60}]

CROSSREFS

Cf. A094043, A094044.

Sequence in context: A003029 A049524 A033493 this_sequence A033494 A079837 A041523

Adjacent sequences: A094042 A094043 A094044 this_sequence A094046 A094047 A094048

KEYWORD

nonn,base

AUTHOR

Robert G. Wilson v (rgwv(AT)rgwv.com), Apr 23 2004

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 29 17:54 EDT 2008. Contains 143238 sequences.


AT&T Labs Research