login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A077719 Primes which can be expressed as sum of distinct powers of 5. 9
5, 31, 131, 151, 631, 751, 3251, 3881, 16381, 19381, 19501, 19531, 78781, 78901, 81281, 81401, 81901, 82031, 93901, 94531, 97001, 97501, 97651, 390751, 390781, 393901, 394501, 406381, 468781, 469501, 471901, 472631, 484531, 485131, 487651, 1953151, 1953901 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

Primes whose base 5 representation contains only zeros and 1's.

LINKS

Michael S. Branicky, Table of n, a(n) for n = 1..10000

PROG

(Python)

from sympy import isprime

def aupton(terms):

  k, alst = 0, []

  while len(alst) < terms:

    k += 1

    t = sum(5**i*int(di) for i, di in enumerate((bin(k)[2:])[::-1]))

    if isprime(t): alst.append(t)

  return alst

print(aupton(37)) # Michael S. Branicky, May 31 2021

CROSSREFS

Cf. A020449, A000695, A033042, A077717, A077718, A077720, A077721, A077722.

Sequence in context: A267938 A041303 A184446 * A235462 A005826 A293716

Adjacent sequences:  A077716 A077717 A077718 * A077720 A077721 A077722

KEYWORD

nonn

AUTHOR

Amarnath Murthy, Nov 19 2002

EXTENSIONS

More terms from Sascha Kurz, Jan 03 2003

a(36) and beyond from Michael S. Branicky, May 31 2021

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 27 03:29 EDT 2021. Contains 348270 sequences. (Running on oeis4.)