cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A383939 Numbers k such that k and the k-th triangular number T(k) = k*(k+1)/2 have only even digits.

Original entry on oeis.org

0, 28, 40, 64, 400, 2828, 4000, 4064, 6428, 22840, 24028, 40000, 202428, 240028, 400000, 2040040, 2400028, 4000000, 6422840, 6428064, 6646624, 20044064, 20202080, 20400040, 20406080, 24000028, 40000000, 66400064, 200042428, 204000040, 228406080, 240000028
Offset: 1

Views

Author

Shyam Sunder Gupta, Aug 18 2025

Keywords

Comments

The sequence also contains the infinite subsequence 4*10^n for n >= 1.

Examples

			64 is a term since it and T(64) = 2080 both have only even digits.
		

Crossrefs

Programs

  • Mathematica
    q[k_] := And @@ (AllTrue[IntegerDigits[#], EvenQ] & /@ {k, k*(k+1)/2}); Select[Range[0, 4*10^6], q] (* Amiram Eldar, Aug 18 2025 *)