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.

A381122 Numbers k such that k^(k+1) == k (mod k+2).

Original entry on oeis.org

0, 1, 4, 8, 12, 20, 24, 28, 32, 36, 44, 56, 60, 72, 80, 84, 92, 104, 116, 120, 132, 140, 144, 156, 164, 168, 176, 180, 192, 200, 204, 212, 216, 224, 252, 260, 272, 276, 296, 300, 312, 324, 332, 344, 356, 360, 380, 384, 392, 396, 420, 444, 452, 456, 464, 476, 480, 500, 512, 524, 536, 540, 552, 560
Offset: 1

Views

Author

Robert Israel, Feb 14 2025

Keywords

Comments

Numbers k such that (-2)^(k+1) == k (mod k+2).
Odd terms are k-2 for k >= 3 in A115976.
Even terms are divisible by 4.

Examples

			a(5) = 12 is a term because 12^13 == 12 (mod 14).
		

Crossrefs

Programs

  • Maple
    select(k -> (-2) &^(k+1) mod (k+2) = k, [$1..1000]);
  • Mathematica
    Select[Range[0,560],PowerMod[#,#+1,#+2]==#&] (* James C. McMahon, Feb 15 2025 *)