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.

A051285 a(1) = 1, a(2) = 2, a(n) = a(n-1)^a(n-2).

This page as a plain text file.
%I A051285 #34 Nov 29 2023 07:44:55
%S A051285 1,2,2,4,16,65536,
%T A051285 115792089237316195423570985008687907853269984665640564039457584007913129639936
%N A051285 a(1) = 1, a(2) = 2, a(n) = a(n-1)^a(n-2).
%t A051285 RecurrenceTable[{a[1]==1, a[2]==2, a[n]==a[n-1]^a[n-2]}, a, {n, 7}] (* _Vincenzo Librandi_, Dec 17 2015 *)
%o A051285 (Magma) I:=[1,2]; [n le 2 select I[n] else Self(n-1)^Self(n-2): n in [1..7]]; // _Vincenzo Librandi_, Dec 17 2015
%o A051285 (PARI) a(n) = if(n<3, n, a(n-1)^a(n-2)); \\ _Altug Alkan_, Dec 17 2015
%K A051285 easy,nonn
%O A051285 1,2
%A A051285 Matt Kasper (matt192837(AT)hotmail.com)
%E A051285 Name changed and first term added by _Natan Arie Consigli_, Dec 17 2015