login
A062911
Non-palindromic number and its reversal are both multiples of 8.
1
80, 800, 840, 880, 2136, 2152, 2176, 2192, 2304, 2320, 2328, 2344, 2360, 2368, 2384, 2512, 2536, 2576, 2592, 2704, 2720, 2728, 2744, 2760, 2768, 2784, 2912, 2936, 2952, 2976, 4016, 4032, 4056, 4072, 4096, 4200, 4208, 4240, 4248, 4264, 4280, 4288, 4416
OFFSET
1,1
COMMENTS
If x is in the sequence, then so is 10*x. - Robert Israel, Feb 24 2020
LINKS
EXAMPLE
2152 and 2512 are both multiples of 8.
MAPLE
revdigs:= proc(n) local L;
L:= convert(n, base, 10);
add(L[-i]*10^(i-1), i=1..nops(L))
end proc:
filter:= proc(n) local v;
v:= revdigs(n);
v <> n and v mod 8 = 0
end proc:
select(filter, [seq(i, i=8..5000, 8)]); # Robert Israel, Feb 24 2020
PROG
(ARIBAS): n := 8; stop := 4500; m := 0; while m < stop do rev := int_reverse(m); if m <> rev and rev mod n = 0 then write(m, " "); end; inc(m, n); end; .
CROSSREFS
Sequence in context: A211693 A164753 A279745 * A024392 A200550 A052519
KEYWORD
nonn,base,easy,look
AUTHOR
Amarnath Murthy, Jul 01 2001
EXTENSIONS
Corrected and extended by Dean Hickerson, Jul 06, 2001
STATUS
approved