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.
%I A368217 #12 Dec 18 2023 12:22:12 %S A368217 2,9,28,81,176,15625,288,6561,1792,137781,17920,244140625,30720, %T A368217 7971615,311296,43046721,1492992,3814697265625,2752512,3486784401, %U A368217 38797312,242137805625,28311552,59604644775390625,184549376,51684605176023,2583691264,63546645708225,9512681472,41858774825571336448888891 %N A368217 a(n) is the first number == 1 (mod n) that is the product of n primes, counted by multiplicity. %C A368217 a(n) is the first number k == 1 (mod n) such that A001222(k) = n. %C A368217 A053669(n)^n <= a(n) <= A034694(n). %C A368217 If n is in A007694 then a(n) = A053669(n)^n. %H A368217 Robert Israel, <a href="/A368217/b368217.txt">Table of n, a(n) for n = 1..1000</a> %e A368217 a(4) = 81 because 81 == 1 (mod 4) and 81 = 3^4 is the product of 4 primes, counted by multiplicity, and no smaller number works. %p A368217 f:= proc(n) uses priqueue; local p, x, Aprimes, v; %p A368217 initialize(Aprimes); %p A368217 p:= 2; %p A368217 while n mod p = 0 do p:= nextprime(p) od: %p A368217 insert([-p^n,p,0],Aprimes); %p A368217 do %p A368217 v:= extract(Aprimes); %p A368217 x:= -v[1]; %p A368217 if x mod n = 1 then return x fi; %p A368217 if v[3] < n then %p A368217 insert([v[1],v[2],v[3]+1],Aprimes); %p A368217 p:= nextprime(v[2]); %p A368217 while n mod p = 0 do p:= nextprime(p) od; %p A368217 x:= x * (p/v[2])^(n-v[3]); %p A368217 insert([-x,p,v[3]],Aprimes); %p A368217 fi; %p A368217 od; %p A368217 end proc: %p A368217 f(1):= 2: %p A368217 map(f, [$1..30]); %Y A368217 Cf. A001222, A007694, A034694, A053669. %K A368217 nonn %O A368217 1,1 %A A368217 _Robert Israel_, Dec 17 2023