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.

A065559 Smallest k such that tau(n+k) = tau(k).

This page as a plain text file.
%I A065559 #33 Mar 18 2025 13:34:50
%S A065559 2,3,2,3,2,5,8,3,2,3,2,5,8,3,2,3,2,5,8,3,2,7,10,5,8,3,2,3,2,7,8,5,6,3,
%T A065559 2,5,14,3,2,3,2,5,8,3,2,7,8,5,6,3,2,6,21,5,10,3,2,3,2,7,8,5,6,3,2,5,
%U A065559 10,3,2,3,2,7,14,5,10,3,2,5,6,3,2,7,8,5,6,3,2,6,6,7,15,5,22,3,2,5,14,3,2
%N A065559 Smallest k such that tau(n+k) = tau(k).
%H A065559 Harry J. Smith, <a href="/A065559/b065559.txt">Table of n, a(n) for n = 1..1000</a>
%H A065559 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/DivisorFunction.html">Divisor Function</a>
%p A065559 with(numtheory):
%p A065559 a:= proc(n) local k; for k while tau(n+k)<>tau(k) do od; k end:
%p A065559 seq(a(n), n=1..120);  # _Alois P. Heinz_, Mar 18 2013
%t A065559 tau[m_] := DivisorSigma[0, m]; a[n_] := Catch[ For[k = 1, True, k++, If[ tau[n+k] == tau[k], Throw[k]]]]; Table[a[n], {n, 1, 99}] (* _Jean-François Alcover_, Mar 18 2013 *)
%t A065559 skt[n_]:=Module[{k=1},While[DivisorSigma[0,k]!=DivisorSigma[0,n+k], k++]; k]; Array[skt,100] (* _Harvey P. Dale_, Oct 13 2017 *)
%o A065559 (PARI)
%o A065559 tau(m) = {local(k, n); for(k=1,m,n=1; while(numdiv(n)!=numdiv(n+k), n++); print1(n,","))}
%o A065559 tau(200)
%o A065559 (PARI) { for (n=1, 1000, k=1; while(numdiv(n + k) != numdiv(k), k++); write("b065559.txt", n, " ", k) ) } \\ _Harry J. Smith_, Oct 22 2009
%Y A065559 Cf. A000005.
%K A065559 nonn
%O A065559 1,1
%A A065559 _Jason Earls_, Nov 29 2001