login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A156221
Primes that can be represented with the digits {3,1,4,1,5,9}.
1
3, 5, 11, 13, 19, 31, 41, 43, 53, 59, 113, 131, 139, 149, 151, 191, 193, 311, 349, 359, 419, 431, 439, 491, 541, 593, 911, 941, 953, 1153, 1193, 1319, 1439, 1451, 1453, 1459, 1493, 1531, 1543, 1549, 1913, 1931, 1951, 3119, 3191, 3491, 3511, 3541, 3911, 4139
OFFSET
1,1
COMMENTS
Digits 3,4,5,9 can be used no more than once; 1 can be used no more than twice.
Sequence is finite, ending with a(221) = 954131.
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..221 (full sequence)
MAPLE
A156221:={}: occ:=[0, 2, 0, 1, 1, 1, 0, 0, 0, 1]: p:=2: while p<=954311 do cordig:=true: for k from 1 to 10 do d:=convert(p, base, 10): if(numboccur(k-1, d)>occ[k])then cordig:=false:break: fi: od: if(cordig)then A156221:=A156221 union {p}: fi: p:=nextprime(p): od: op(sort(convert(A156221, list))); # Nathaniel Johnston, Jun 24 2011
CROSSREFS
Sequence in context: A001122 A152871 A329760 * A207325 A295243 A179017
KEYWORD
nonn,base,fini,full
AUTHOR
Ki Punches, Feb 06 2009
EXTENSIONS
Edited and corrected by Ray Chandler, Feb 08 2009
STATUS
approved