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”).

A044460
Numbers n such that string 0,2 occurs in the base 5 representation of n but not of n+1.
1
27, 52, 77, 102, 127, 139, 152, 177, 202, 227, 252, 264, 277, 302, 327, 352, 377, 389, 402, 427, 452, 477, 502, 514, 527, 552, 577, 602, 627, 639, 652, 699, 702, 727, 752, 764, 777, 802, 827, 852, 877, 889, 902, 927, 952, 977
OFFSET
1,1
PROG
(Python)
from gmpy2 import digits
A044460_list = [n for n in range(5**7) if '02' in digits(n, 5) and '02' not in digits(n+1, 5)] # Chai Wah Wu, Dec 03 2015
CROSSREFS
Sequence in context: A217235 A265683 A044079 * A160845 A216224 A255364
KEYWORD
nonn,base
STATUS
approved