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.

A335024 Ratios of consecutive terms of A056612.

This page as a plain text file.
%I A335024 #25 Dec 01 2020 21:12:59
%S A335024 1,1,2,1,18,1,4,1,10,1,12,1,14,15,8,1,54,1,100,63,22,1,8,1,26,3,28,1,
%T A335024 30,1,16,363,34,35,36,1,38,39,40,1,294,1,4,45,46,1,48,1,50,51,52,1,
%U A335024 162,55,56,57,58,1,60,1,62,189,32,65,198,1,68,23,70,1,24,1,74,75,76,847,78,1,80
%N A335024 Ratios of consecutive terms of A056612.
%C A335024 Conjecture 1: a(n) = 1 if and only if n + 1 = p^k for some prime p and some positive integer k < p.
%C A335024 Conjecture 2 (due to _Alois P. Heinz_): a(n) = 1 <=> n+1 in A136327.
%H A335024 Alois P. Heinz, <a href="/A335024/b335024.txt">Table of n, a(n) for n = 1..20000</a>
%F A335024 a(n) = A056612(n+1)/A056612(n).
%p A335024 b:= proc(n) b(n):= (1/n +`if`(n=1, 0, b(n-1))) end:
%p A335024 g:= proc(n) g(n):= (f-> igcd(b(n)*f, f))(n!) end:
%p A335024 a:= n-> g(n+1)/g(n):
%p A335024 seq(a(n), n=1..80);  # _Alois P. Heinz_, May 20 2020
%t A335024 g[n_] := GCD[n!, n! Sum[1/k, {k, 1, n}]];
%t A335024 a[n_] := g[n + 1]/g[n];
%t A335024 Array[a, 80] (* _Jean-François Alcover_, Dec 01 2020, after PARI *)
%o A335024 (PARI) g(n) = gcd(n!, n!*sum(k=1, n, 1/k)); \\ A056612
%o A335024 a(n) = g(n+1)/g(n); \\ _Michel Marcus_, May 20 2020
%Y A335024 Cf. A056612, A136327, A334958.
%K A335024 nonn
%O A335024 1,3
%A A335024 _Petros Hadjicostas_, May 19 2020