OFFSET
1,1
COMMENTS
This is the range of A268449, which is the main motivation for registering this sequence in the OEIS.
MATHEMATICA
Select[Range[10, 150], Last@ #2 > First@ #1 || If[Length@ #2 >= 2, And[#2[[-2]] == 1, Last@ #2 < First@ #1]] & @@ TakeDrop[IntegerDigits@ #, -1] &] (* Version 10.2, or *)
Select[Range@ 150, If[Length@ # < 2, False, #[[-2]] > Last@ # || If[Length@ # >= 3, And[#[[-3]] == 1, #[[-2]] < Last@ #]]] &@ IntegerDigits@ # &] (* Michael De Vlieger, Feb 05 2016 *)
PROG
(PARI) is_A267759(n)=vecmax(n=digits(n))>n[#n] || sum(i=1, #n-2, n[i]==1 && n[i+1]<n[#n])
CROSSREFS
KEYWORD
nonn,base
AUTHOR
M. F. Hasler, Feb 05 2016
STATUS
approved