Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A143245
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A143245 A098957 such that the number is prime: a(n)=If[PrimeQ[A098957(n)],A098957(n)]. +0
1
3, 5, 7, 13, 11, 17, 29, 23, 31, 41, 37, 53, 61, 43, 47, 97, 113, 73, 101, 67, 83, 107, 71, 127, 193, 233, 197, 229, 181, 173, 131, 163, 227, 251, 199, 167, 151, 223, 257, 449, 353, 337, 433, 409, 313, 421, 277, 373, 269, 461, 349, 509, 307, 331, 491, 283, 443 (list; graph; listen)
OFFSET

1,1

REFERENCES

Weisstein, Eric W. "Gray Code." http : // mathworld.wolfram.com/GrayCode.html

FORMULA

a(n)=If[PrimeQ[A098957(n)],A098957(n)].

MATHEMATICA

GrayCodeList[k_] := Module[{b = IntegerDigits[k, 2], i}, Do[ If[b[[i - 1]] == 1, b[[i]] = 1 - b[[i]]], {i, Length[b], 2, -1} ]; b ]; a[n_] = GrayCodeList[Prime[n]]; a0 = Table[Sum[a[n][[m + 1]]*2^m, {m, 0, Length[a[n]] - 1}], {n, 1, 200}]; Flatten[Table[If[PrimeQ[a0[[n]]], a0[[n]], {}], {n, 1, 200}]]

CROSSREFS

Cf. A098957.

Sequence in context: A161329 A111745 A098957 this_sequence A018205 A121047 A152075

Adjacent sequences: A143242 A143243 A143244 this_sequence A143246 A143247 A143248

KEYWORD

nonn,uned,probation

AUTHOR

Roger L. Bagula and Gary W. Adamson (rlbagulatftn(AT)yahoo.com), Oct 21 2008

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 November 29 12:46 EST 2009. Contains 167659 sequences.


AT&T Labs Research