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.

A354931 a(n) = the least k for which A345992(k) = n.

This page as a plain text file.
%I A354931 #13 Jun 16 2022 10:26:20
%S A354931 1,6,12,20,15,42,28,24,45,110,33,156,91,70,60,112,51,342,76,140,231,
%T A354931 198,69,168,325,234,108,476,87,930,124,96,561,170,315,1116,185,418,
%U A354931 195,360,123,714,172,220,585,1426,141,336,245,850,204,988,159,270,385,1064,1311,522,177,3660,488,434,504,320,715,1254
%N A354931 a(n) = the least k for which A345992(k) = n.
%H A354931 Antti Karttunen, <a href="/A354931/b354931.txt">Table of n, a(n) for n = 1..3349</a> (computed using million term data file provided for A344005 by _N. J. A. Sloane_)
%F A354931 a(n) = n * A354932(n).
%t A354931 s[n_] := Module[{m = 1}, While[!Divisible[m*(m+1), n], m++]; GCD[n, m]]; a[n_] := Module[{k = n}, While[s[k] != n, k+=n]; k]; Array[a,60] (* _Amiram Eldar_, Jun 15 2022 *)
%o A354931 (PARI)
%o A354931 A345992(n) = gcd(n,A344005(n));
%o A354931 A354931(n) = for(k=1,oo,if(A345992(k)==n,return(k)));
%Y A354931 Column 1 of A354930.
%Y A354931 Cf. A344005, A345992, A354932.
%K A354931 nonn
%O A354931 1,2
%A A354931 _Antti Karttunen_, Jun 14 2022