OFFSET
1,2
COMMENTS
Differs from A044820 first for 730 = 1001_9, which is in this sequence but not in A044820. - R. J. Mathar, Jan 18 2018
EXAMPLE
Base-9 digits of 9993: 1,4,6,3,3, so that 9993 is in the sequence.
MAPLE
read("transforms") :
isA297145 := proc(n)
local dgs, ud;
dgs := convert(n, base, 9) ;
if nops(dgs) < 2 then
return true;
end if;
if 0 in DIFF(dgs) then
true;
else
false;
end if;
end proc:
for n from 1 to 300 do
if isA297145(n) then
printf("%d, ", n) ;
end if;
end do: # R. J. Mathar, Jan 18 2018
MATHEMATICA
a[n_, b_] := Sign[Differences[IntegerDigits[n, b]]]; z = 300;
b = 9; t = Table[a[n, b], {n, 1, 10*z}];
u = Select[Range[z], ! MemberQ[t[[#]], 0] && First[t[[#]]] == 1 &] (* A297143 *)
v = Select[Range[z], ! MemberQ[t[[#]], 0] && First[t[[#]]] == -1 &] (* A297144 *)
Complement[Range[z], Union[u, v]] (* A297145 *)
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Clark Kimberling, Jan 15 2018
STATUS
approved