A070970 Smallest number k such that A065422(k)/A065422(k+1) = k^n, where k>1.
6, 12, 63, 260, 5307, 1638, 33306, 135622, 7119, 6975435, 13330856
Offset: 1
Crossrefs
Cf. A065422.
Extensions
a(10)-a(11) from Amiram Eldar, May 05 2024
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.
a008336 n = a008336_list !! (n-1) a008336_list = 1 : zipWith (/*) a008336_list [1..] where x /* y = if x `mod` y == 0 then x `div` y else x*y -- Reinhard Zumkeller, Feb 22 2012, Oct 25 2010
A008336 := proc(n) option remember; if n = 1 then 1 elif A008336(n-1) mod (n-1) = 0 then A008336(n-1)/(n-1) else A008336(n-1)*(n-1); fi; end;
a[n_] := a[n] = If[ Divisible[ a[n-1], n-1], a[n-1]/(n-1), a[n-1]*(n-1)]; a[1] = 1; Table[a[n], {n, 1, 28}] (* Jean-François Alcover, Dec 02 2011 *) nxt[{n_,a_}]:={n+1,If[Divisible[a,n],a/n,n*a]}; Transpose[ NestList[ nxt,{1,1},30]][[2]] (* Harvey P. Dale, May 09 2016 *)
from functools import lru_cache @lru_cache(maxsize=None) def A008336(n): if n == 1: return 1 a, b = divmod(c:=A008336(n-1),n-1) return c*(n-1) if b else a # Chai Wah Wu, Apr 11 2024
Comments