OFFSET
1,2
COMMENTS
A number which is not a "rebel" is called "docile". These definitions come from the French site Diophante, see link.
There are an infinite number of odd "rebel" numbers. For instance, all the repdigits 9999999...99 with a string of (2k+1) times the digit 9; but there are only eighteen even "rebel" numbers: {2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 38, 40, 58, 60, 78, 80, 98, 100}.
LINKS
Maurice Bauval, Dociles et Rebelles, Diophante, A 348, September 2014.
EXAMPLE
14 is rebel because 14 = 13 + 1 = 12 + 2 = 11 + 3 = 10 + 4 = 9 + 5 = 8 + 6 and never S(a) = S(b) with these integers.
MATHEMATICA
Select[Range@ 100, Count[IntegerPartitions[#, {2}], _?(And[#1 > #2, Total@ IntegerDigits@ #1 == Total@ IntegerDigits@ #2] & @@ # &)] == 0 &]~Join~Union@ Flatten@ Table[Map[FromDigits[{#}~Join~ConstantArray[9, k]] &, Range[1, 9, 2] - Boole[OddQ@ k]], {k, 2, 6}] (* Michael De Vlieger, Sep 18 2017 *)
PROG
(PARI) isok(n) = {for (x=1, n\2, if ((x != (n-x)) && (sumdigits(x) == sumdigits(n-x)), return (0)); ); return (1); } \\ Michel Marcus, Sep 18 2017
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Bernard Schott, Sep 18 2017
EXTENSIONS
More terms from Giovanni Resta, Sep 18 2017
STATUS
approved