A134970 Canyon numbers. Numbers with exactly one locally minimal digit and with exactly two locally maximal digits which are the same digit and nonadjacent.
101, 202, 212, 303, 313, 323, 404, 414, 424, 434, 505, 515, 525, 535, 545, 606, 616, 626, 636, 646, 656, 707, 717, 727, 737, 747, 757, 767, 808, 818, 828, 838, 848, 858, 868, 878, 909, 919, 929, 939, 949, 959, 969, 979, 989, 2012, 2102, 3013, 3023
Offset: 1
Examples
Illustration of 4104 as a canyon number: 4 . . 4 . . . . . . . . . 1 . . . . 0 .
Links
- Kellen Myers, Table of n, a(n) for n = 1..116505
Crossrefs
Cf. A134971.
Programs
-
Python
from itertools import chain, combinations as combs ups = list(chain.from_iterable(combs(range(10), r) for r in range(2, 11))) s = set(L[::-1] + R[1:] for L in ups for R in ups if L[0] == R[0]) afull = sorted(int("".join(map(str, t))) for t in s if t[0] == t[-1]) print(afull[:60]) # Michael S. Branicky, Aug 02 2022
Extensions
Edited by Kellen Myers, Jan 18 2011
Comments