login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A230355
Nonsquarefree numbers n such that digit sum of n = digit sum of squarefree part of n.
3
12, 24, 60, 100, 120, 132, 150, 156, 200, 204, 228, 240, 264, 276, 300, 320, 348, 372, 420, 500, 516, 552, 600, 624, 636, 660, 700, 708, 732, 744, 780, 912, 1000, 1014, 1050, 1056, 1068, 1092, 1100, 1128, 1164, 1200, 1212, 1216, 1236, 1248, 1272, 1300, 1308, 1320, 1356, 1380, 1392, 1400
OFFSET
1,1
EXAMPLE
Squarefree part of 624=2^4*3*13 is 39. Digit_sum(624)=12, digit_sum(39)=12
PROG
(PARI)
digsum(n)={local (d, p); d=0; p=n; while(p, d+=p%10; p=floor(p/10)); return(d)}
{for (n=4, 10^3, m=core(n); if(digsum(n)==digsum(m)&&m<>n, print(n))); }
CROSSREFS
KEYWORD
nonn,base,less
AUTHOR
Antonio Roldán, Oct 16 2013
STATUS
approved