Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A067031
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A067031 Numbers n that are not of the form k + reverse(k) for any k. +0
18
1, 3, 5, 7, 9, 13, 15, 17, 19, 20, 21, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87 (list; graph; listen)
OFFSET

0,2

EXAMPLE

3 belongs to the sequence since there is no k such that k + reverse(k) = 3.

PROGRAM

(ARIBAS): function a067031(a, b: integer); var k, n, i, rev: integer; test: boolean; st, nst: string; begin for n := a to b do k := 0; test := 1; while test and 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 test := 0; else inc(k); end; end; if k > n then write(n, ", "); end; end; end; a067031(0, 100); .

CROSSREFS

Complement of A067030.

Cf. A033865, A067030, A067032, A067033, A067034.

Sequence in context: A121388 A161700 A063081 this_sequence A029740 A063425 A064608

Adjacent sequences: A067028 A067029 A067030 this_sequence A067032 A067033 A067034

KEYWORD

base,easy,nonn

AUTHOR

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

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 29 12:46 EST 2009. Contains 167659 sequences.


AT&T Labs Research