OFFSET
1,1
COMMENTS
Conjecture: a(n) ~ 2n. - Charles R Greathouse IV, Apr 10 2018
If n is in the sequence then so is 10*n. - David A. Corneth, Apr 10 2018
a(10^9) = 2367976531. - Charles R Greathouse IV, Apr 11 2018
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
17 is in this sequence because 1+7 > 3+4.
MAPLE
select(t -> convert(convert(2*t, base, 10), `+`)<convert(convert(t, base, 10), `+`), [$1..1000]); # Robert Israel, Apr 12 2018
MATHEMATICA
With[{s = Array[Total@ IntegerDigits@ # &, 332]}, Select[Range@ Floor[Length[s]/2], s[[#]] > s[[2 #]] &]] (* Michael De Vlieger, Apr 10 2018 *)
PROG
(Python)
print([y for y in range(10000) if sum([int(x) for x in str(y)]) > sum([int(z) for z in str(2*y)])])
(PARI) is(n)=sumdigits(n)>sumdigits(2*n) \\ Charles R Greathouse IV, Apr 10 2018
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
David Consiglio, Jr., Apr 10 2018
STATUS
approved