login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A067030 Numbers n of the form k + reverse(k) for at least one k. 38
0, 2, 4, 6, 8, 10, 11, 12, 14, 16, 18, 22, 33, 44, 55, 66, 77, 88, 99, 101, 110, 121, 132, 141, 143, 154, 161, 165, 176, 181, 187, 198, 201, 202, 221, 222, 241, 242, 261, 262, 281, 282, 302, 303, 322, 323, 342, 343, 362, 363, 382, 383, 403, 404, 423, 424, 443 (list; graph; refs; listen; history; internal format)
OFFSET

0,2

COMMENTS

Contribution from Avik Roy (avik_3.1416(AT)yahoo.co.in), Feb 02 2009: (Start)

Any (k+1) digit number N can be represented as

N = sum_{i=0...k} (ai*10^i).

Rev(N) = sum_{i=0...k} (ai*10^(k-i)).

N+Rev(N) = sum_{i=0...k} (ai*(10^i+10^(k-i))).

The latter formula can produce all the terms of this sequence, the order of terms is explicitly determined by the order of ai's (repetition of terms might not be avoided). (End)

LINKS

Index entries for sequences related to Reverse and Add!

T. D. Noe, Table of n, a(n) for n = 0..1000

EXAMPLE

0 belongs to the sequence since 0 + 0 = 0; 33 belongs to the sequence since 12 + 21 = 33.

PROG

(ARIBAS):

function Reverse(n: integer): integer; var i: integer; str, rev: string;

begin str := itoa(n); rev := "";

for i := 0 to length(str)-1 do rev := concat(str[i], rev); end;

return atoi(rev); end Reverse;

function A067030(a, b: integer); var k, n: integer;

begin for n := a to b do k := 0; while k <= n do

if n = k+Reverse(k) then write(n, ", "); break; else inc(k); end;

end; end; end A067030;

A067030(0, 500) (* revised May 04 2011 *).

(MAGMA) A067030:=function(a, b); S:=[]; for n in [a..b] do k:=0; while k le n do if n eq k+Seqint(Reverse(Intseq(k))) then Append(~S, n); break; else k+:=1; end if; end while; end for; return S; end function; A067030(0, 500); // May 04 2011

CROSSREFS

Cf. A033865, A067031, A067032, A067033, A067034.

Sequence in context: A176995 A154809 A153170 * A072427 A050420 A185449

Adjacent sequences:  A067027 A067028 A067029 * A067031 A067032 A067033

KEYWORD

base,easy,nonn

AUTHOR

Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), Dec 29 2001

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 12 18:43 EST 2012. Contains 205432 sequences.