OFFSET
1,2
COMMENTS
For n > 20 the structure of digits represents a hill. The first digit is equal to the last digit (1 - 9). The first digits are in nondecreasing order. The last digits are in nonincreasing order. The numbers may have more than one largest digit. Sequence is infinite.
Superset of A110784. - R. J. Mathar, Aug 07 2011
EXAMPLE
Illustration using a term of this sequence, 4566664:
. . 6 6 6 6 .
. 5 . . . . .
4 . . . . . 4
MATHEMATICA
nonz[v_] := Select[v, #!=0 &]; hillQ[n_] := Module[{d=IntegerDigits[n]}, If[d[[1]] != d[[-1]], Return[False]]; MemberQ[{{}, {0}, {-2}}, nonz@ Differences@ Sign@ nonz@ Differences@d]]; Select[Range[1000], hillQ] (* Amiram Eldar, Dec 19 2018 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jaroslav Krizek, Jul 25 2011
STATUS
approved