OFFSET
1,3
COMMENTS
Every nonnegative integer can be represented as the sum of two members of this sequence. - Franklin T. Adams-Watters, Aug 30 2014
This first differs from A236402 at a(110)=1000 (followed by 1010, 1020, 1030, ...), while A236402(110)=910 (followed by 1000, 1001, 1002, ...). - M. F. Hasler, Dec 28 2014
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
N:= 6: # to get all terms with up to N digits
A[1]:= 0:
count:= 1:
for d from 1 to N do
dp:= ceil(d/2);
for j from 10^(dp-1) to 10^dp-1 do
L:= ListTools[Reverse](convert(j, base, 10));
L:= ListTools[Interleave](L, [0$(d-dp)]);
count:= count+1;
A[count]:= add(L[i]*10^(d-i), i=1..d);
od
od:
seq(A[i], i=1..count); # Robert Israel, Aug 31 2014
PROG
(PARI) is(n)=!forstep(i=2, #n=digits(n), 2, n[i]&&return) \\ M. F. Hasler, Dec 28 2014
(Python)
def ok(n): return str(n)[1::2].strip('0') == ""
print([k for k in range(404) if ok(k)]) # Michael S. Branicky, Apr 12 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
EXTENSIONS
Definition corrected by Franklin T. Adams-Watters, Aug 30 2014
STATUS
approved