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.

A307221 Positions of records in A306440.

This page as a plain text file.
%I A307221 #20 Oct 19 2020 12:35:47
%S A307221 0,1,6,30,36,540,2100,3780,15120,37800,85680,120960,126000,131040,
%T A307221 196560,302400,332640,786240,917280,1179360,2702700,3341520,4324320,
%U A307221 8648640,19656000,19958400,21205800,43243200,46781280,57657600,64864800,122522400,151351200
%N A307221 Positions of records in A306440.
%C A307221 Numbers k such that A306440(k) > A306440(j) for all j < k.
%H A307221 Giovanni Resta, <a href="/A307221/b307221.txt">Table of n, a(n) for n = 1..50</a>
%e A307221 a(3) = 6 is in the sequence because A306440(6) = 2 while A306440(j) < 2 for 0 <= j < 6.
%p A307221 A306440:= proc(n) local t;
%p A307221     nops(select(t -> t^2<2*n and isprime(t+1) and isprime(2*n/t+1), numtheory:-divisors(2*n)))
%p A307221 end proc:
%p A307221 Res:= 0: vmax:= 0:
%p A307221 for n from 1 to 10^6 do
%p A307221   v:= A306440(n);
%p A307221   if v > vmax then
%p A307221     Res:= Res, n; vmax:= v;
%p A307221   fi
%p A307221 od:
%p A307221 Res;
%t A307221 A306440[n_] := Length[Select[Divisors[2n], #^2 < 2n && PrimeQ[#+1] && PrimeQ[2n/#+1]&]];
%t A307221 Res = {0}; vmax = 0;
%t A307221 For[n = 1, n <= 10^6 , n++, v = A306440[n]; If[v > vmax, Print[n]; AppendTo[Res, n]; vmax = v]];
%t A307221 Res (* _Jean-François Alcover_, Oct 17 2020, translated from Maple *)
%Y A307221 Cf. A306440.
%K A307221 nonn
%O A307221 1,3
%A A307221 _Robert Israel_, Mar 29 2019
%E A307221 a(24)-a(33) from _Daniel Suteu_, Mar 29 2019