OFFSET
1,1
COMMENTS
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
EXAMPLE
The number of this sequence (A163278) is a concave-convex number:
. . . . . .
. . . . . 8
. . . . 7 .
. 6 . . . .
. . . . . .
. . . . . .
. . 3 . . .
. . . 2 . .
1 . . . . .
. . . . . .
PROG
(PARI) is(n) = my (d=digits(n), cvx=0, ccv=0, str=0); for (i=1, #d-2, my (x=d[i]+d[i+2]-2*d[i+1]); if (x>0, cvx++, x<0, ccv++, str++)); return (cvx>0 && ccv>0) \\ Rémy Sigrist, Aug 09 2017
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Omar E. Pol, Oct 16 2009
STATUS
approved