OFFSET
1,1
COMMENTS
Numbers beginning with 21, 23, 25, 27, 29, 40, 42, 44, 46, 48, 61, 63, 65, 67, 69, 80, 82, 84, 86, 88 and ending with 05, 10, 15, 25, 30, 35, 45, 50, 55, 65, 70, 75, 85, 90, 95. The number of d-digit terms is 3*10^(d-2) for d >= 3. - Jianing Song, Dec 24 2021
LINKS
Ana Rechtman, Décembre 2021, 3e défi, Images des Mathématiques, CNRS, 2021.
EXAMPLE
25 is a term since it is divisible by 5 and not by 4, while 52, its reverse, is divisible by 4 and not by 5.
MATHEMATICA
Select[5 * Range[500], ! Divisible[#, 4] && Divisible[(r = IntegerReverse[#]), 4] && ! Divisible[r, 5] &] (* 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 A350233gen(): return filter(lambda n:(m := int(str(n)[::-1])) % 5 and not m % 4, filter(lambda n: n % 4 and not n % 5, count(1)))
A350233_list = list(islice(A350233gen(), 20)) # Chai Wah Wu, Dec 21 2021
CROSSREFS
KEYWORD
nonn,base,changed
AUTHOR
Michel Marcus, Dec 21 2021
STATUS
approved