OFFSET
1,1
COMMENTS
Terms have a prime factor of the form 18*k+1.
LINKS
Antonio Roldán and T. D. Noe, Table of n, a(n) for n = 1..10000 (542 terms from Antonio Roldán)
EXAMPLE
12673 is in the sequence because 12673 = 19*23*29, their largest proper divisor is 667. Both have a digital sum of 19.
MATHEMATICA
Select[Range[2, 10000], Mod[#, 9] > 0 && Total[IntegerDigits[#]] == Total[IntegerDigits[Divisors[#][[-2]]]] &] (* T. D. Noe, Nov 20 2012 *)
PROG
(PARI) largdiv(n)=if(n==1, 1, n/factor(n)[1, 1]) \\ A032742
isok(n) = n>1 && sumdigits(n)==sumdigits(largdiv(n)) && n%9>0
select(isok, [1..10000]) /* Antonio Roldán, Nov 18 2012 */
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antonio Roldán, Nov 18 2012
STATUS
approved
