login
A045177
Numbers whose base-5 representation contains exactly one 0 and one 2.
1
10, 27, 35, 51, 53, 54, 55, 65, 70, 77, 85, 102, 110, 132, 136, 138, 139, 142, 147, 152, 160, 176, 178, 179, 180, 190, 195, 202, 210, 227, 235, 256, 258, 259, 266, 268, 269, 271, 273, 274, 276, 278, 279, 280, 290, 295, 326, 328, 329, 330, 340, 345, 351, 353
OFFSET
1,1
PROG
(Python)
from sympy.ntheory import count_digits
def ok(n): c = count_digits(n, b=5); return c[0] == c[2] == 1
print([k for k in range(354) if ok(k)]) # Michael S. Branicky, Oct 27 2021
CROSSREFS
Cf. A007091.
Subsequence of A039284.
Sequence in context: A024168 A043107 A039284 * A043887 A161450 A361473
KEYWORD
nonn,base
STATUS
approved