OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
2254 and 4522 are both multiples of 14.
MAPLE
filter:= proc(n) local L, j;
L:= convert(n, base, 10);
add(10^(j-1)*L[-j], j=1..nops(L)) mod 14 = 0
end proc:
select(filter, [seq(seq(seq(a*10^d+x, x=((-a*10^d) mod 14)..10^d-2, 14), a=2..8, 2), d=1..4)]); # Robert Israel, May 11 2018
MATHEMATICA
Select[14*Range[700], Divisible[FromDigits[Reverse[IntegerDigits[ #]]], 14]&] (* Harvey P. Dale, Jul 25 2012 *)
PROG
(PARI) isok(n) = !(n % 14) && !(fromdigits(Vecrev(digits(n))) % 14); \\ Michel Marcus, May 12 2018
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Amarnath Murthy, Jul 01 2001
EXTENSIONS
More terms from Erich Friedman, Jul 02 2001
STATUS
approved