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.

Showing 1-1 of 1 results.

A340997 a(n) is the first k such that A340996(k) = n.

Original entry on oeis.org

1, 5, 8, 16, 26, 24, 36, 48, 54, 60, 84, 96, 90, 132, 144, 120, 174, 150, 168, 180, 246, 234, 240, 210, 270, 342, 300, 324, 396, 378, 330, 468, 390, 450, 618, 462, 420, 654, 594, 540, 510, 546, 786, 702, 726, 768, 630, 690, 660, 1078, 858, 936, 798, 780, 930, 1008, 900, 1164, 1056, 966, 840, 1278
Offset: 0

Views

Author

J. M. Bergot and Robert Israel, Feb 01 2021

Keywords

Examples

			a(3) = 16 as A340996(16) = 3 and this is the first occurrence of 3 in A340996.
		

Crossrefs

Cf. A340996.

Programs

  • Maple
    f:= proc(n) local k; nops(select(isprime,{seq(n mod k, k=select(isprime,[$2..n-1]))})) end proc:
    V:= Array(0..100):
    count:= 0:
    for n from 1 while count < 101 do
      v:= f(n);
      if v <= 100 and V[v] = 0 then V[v]:= n; count:= count+1;
    od:
    convert(V,list);

Formula

A340996(a(n)) = n.
Showing 1-1 of 1 results.