login
A100771
Distance from the nearest palindrome.
1
1, 0, 1, 2, 3, 4, 5, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 5, 4, 3, 2, 1, 0, 1, 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0, 1, 2, 3
OFFSET
10,4
EXAMPLE
a(16) = a(17) = 5, 16-11 = 22-17 = 5. a(123) = 2, 123 -121 = 2.
CROSSREFS
Sequence in context: A101916 A361979 A329267 * A234470 A113771 A131845
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Nov 28 2004
EXTENSIONS
More terms from Ray Chandler, Dec 10 2004
STATUS
approved