cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A230354 Even numbers n such that digit sum of n = digit sum of largest odd divisor of n.

This page as a plain text file.
%I A230354 #7 Oct 16 2013 15:33:10
%S A230354 12,18,36,54,60,72,90,108,126,132,144,156,162,180,198,204,216,228,234,
%T A230354 240,252,270,276,306,320,324,342,348,360,372,378,396,414,420,432,450,
%U A230354 504,516,522,540,558,594,612,624,630,636,660,702,708,720,732,738,756,774,780,792,810,900
%N A230354 Even numbers n such that digit sum of n = digit sum of largest odd divisor of n.
%e A230354 Largest odd divisor of 162 is 81. Digit_sum(162)=9, digit_sum(81)=9
%o A230354 (PARI)
%o A230354 mdi(n)= n / 2^valuation(n, 2)
%o A230354 digsum(n)={local (d, p); d=0; p=n; while(p, d+=p%10; p=floor(p/10)); return(d)}
%o A230354 {for (n=2, 10^3,m=mdi(n);if(digsum(n)==digsum(mdi(n))&&m<>n,print(n)));}
%Y A230354 Cf. A006753, A219340, A230355, A230356, A230357.
%K A230354 nonn,base,less
%O A230354 1,1
%A A230354 _Antonio Roldán_, Oct 16 2013