OFFSET
1,1
COMMENTS
Numbers beginning with 5 and ending with 04, 08, 12, 16, 24, 28, 32, 36, 44, 48, 52, 56, 64, 68, 72, 76, 84, 88, 92, 96. The number of d-digit terms is 2*10^(d-2) for d >= 2. - Jianing Song, Dec 24 2021
LINKS
Ana Rechtman, Décembre 2021, 3e défi, Images des Mathématiques, CNRS, 2021.
EXAMPLE
52 is a term since it is divisible by 4 and not by 5, while 25, its reverse, is divisible by 5 and not by 4.
MATHEMATICA
Select[4 * Range[1300], ! Divisible[#, 5] && Divisible[(r = IntegerReverse[#]), 5] && ! Divisible[r, 4] &] (* Amiram Eldar, Dec 21 2021*)
PROG
(PARI) isok(k) = if (!(k%4) && (k%5) , k=fromdigits(Vecrev(digits(k))); !(k%5) && (k%4));
(Python)
from itertools import count, islice
def A350232gen(): return filter(lambda n:(m := int(str(n)[::-1])) % 4 and not m % 5, filter(lambda n: n % 5 and not n % 4, count(1)))
A350232_list = list(islice(A350232gen(), 20)) # Chai Wah Wu, Dec 21 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michel Marcus, Dec 21 2021
STATUS
approved