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”).

Number of k's such that A067030(n) = k + reverse(k).
15

%I #4 Mar 30 2012 17:27:34

%S 1,1,1,1,1,1,1,1,1,1,1,2,3,4,5,6,7,8,9,1,9,9,7,1,6,5,1,4,3,1,2,1,1,2,

%T 1,2,1,2,1,2,1,2,2,3,2,3,2,3,2,3,2,3,3,4,3,4,3,4,3,4,3,4,4,5,4,5,4,5,

%U 4,5,4,5,5,6,5,6,5,6,5,6,5,6,6,7,6,7,6,7,6,7,6,7,7,8,7,8,7,8,7,8,7,8,8,9,8

%N Number of k's such that A067030(n) = k + reverse(k).

%H T. D. Noe, <a href="/A067032/b067032.txt">Table of n, a(n) for n = 0..1000</a>

%e a(12) = 3 since A067030(12) = 33 and for k = 12, 21, 30 we have 33 = k + reverse(k).

%o (ARIBAS): function a067032(a,b: integer); var n,k,c,i,rev: integer; st,nst: string; begin for n := a to b do k := 0; c := 0; while k <= n do st := itoa(k); nst := ""; for i := 0 to length(st) - 1 do nst := concat(st[i],nst); end; rev := atoi(nst); if n = k + rev then inc(c); end; inc(k); end; if c > 0 then write(c,","); end; end; end; a067032(0,1000);.

%Y Cf. A033865, A067030, A067031, A067033, A067034.

%K base,easy,nonn

%O 0,12

%A _Klaus Brockhaus_, Dec 29 2001