OFFSET
1,1
EXAMPLE
Largest odd divisor of 162 is 81. Digit_sum(162)=9, digit_sum(81)=9
PROG
(PARI)
mdi(n)= n / 2^valuation(n, 2)
digsum(n)={local (d, p); d=0; p=n; while(p, d+=p%10; p=floor(p/10)); return(d)}
{for (n=2, 10^3, m=mdi(n); if(digsum(n)==digsum(mdi(n))&&m<>n, print(n))); }
CROSSREFS
KEYWORD
nonn,base,less
AUTHOR
Antonio Roldán, Oct 16 2013
STATUS
approved