A256704 Palindromes of the form 4n + 1 that are divisible by 5.
5, 505, 525, 545, 565, 585, 5005, 5225, 5445, 5665, 5885, 50005, 50105, 50205, 50305, 50405, 50505, 50605, 50705, 50805, 50905, 52025, 52125, 52225, 52325, 52425, 52525, 52625, 52725, 52825, 52925, 54045, 54145, 54245, 54345, 54445, 54545, 54645, 54745, 54845
Offset: 1
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
- John Rafael M. Antalan and Richard P. Tagle, Numeric Palindromes in Primitive and Non-Primitive Pythagorean Triples, arXiv:1502.06760 [math.NT], 2015.
Programs
-
Mathematica
palQ[n_] := Block[{d = IntegerDigits@ n}, d == Reverse@ d]; Select[Select[4 Range[100000] + 1, palQ], Mod[#, 5] == 0 &] (* Michael De Vlieger, Apr 08 2015 *) Select[5*Range[12000],PalindromeQ[#]&&Mod[#,4]==1&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jul 09 2018 *)
-
PARI
ispal(n) = (d = digits(n)) && (Vecrev(d) == d); isok(n) = !(n % 5) && !((n-1) % 4) && ispal(n); \\ Michel Marcus, Apr 08 2015
Extensions
More terms from Michel Marcus, Apr 08 2015
Comments