login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A077723
Primes which can be expressed as sum of distinct powers of 9.
6
739, 811, 6571, 59779, 65701, 532261, 538093, 591301, 597133, 597781, 4783699, 4789621, 4842109, 4849399, 5314411, 5314501, 5373469, 5374279, 5380831, 43047541, 43112341, 43113061, 43643773, 43643863, 47837071, 47888821
OFFSET
1,1
COMMENTS
Primes whose base 9 representation contains only zeros and 1's.
MATHEMATICA
Select[Prime[Range[3000000]], Union[Most[Rest[DigitCount[#, 9]]]]=={0}&] (* Harvey P. Dale, Jul 31 2013 *)
PROG
(PARI) lista(nn) = {forprime(p=2, nn, if (vecmax(digits(p, 9)) <= 1, print1(p, ", ")); ); } \\ Michel Marcus, Oct 10 2014
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Nov 19 2002
EXTENSIONS
More terms from Sascha Kurz, Jan 03 2003
STATUS
approved