OFFSET
1,1
COMMENTS
Many of the numbers are multiples of 9. The ones that are not form sequence A219340.
EXAMPLE
The largest proper divisor of 54 is 27. The sum of digits of 54 and 27 are the same. Thus 54 is in this sequence.
The largest proper divisor of 63 is 21. The sum of digits of 63 and 21 are not the same. Thus 63 is not in this sequence.
MATHEMATICA
Select[Range[2, 10000], Total[IntegerDigits[#]] == Total[IntegerDigits[Divisors[#][[-2]]]] &]
PROG
(Python)
from sympy import divisors
def sd(n): return sum(map(int, str(n)))
def ok(n): return sd(n) == sd(divisors(n)[-2])
print(list(filter(ok, range(2, 840)))) # Michael S. Branicky, Jun 13 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Tanya Khovanova, Jun 13 2021
STATUS
approved