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.

A362343 Sequence that alternately doubles and squares the previous number; a(0) = 1.

This page as a plain text file.
%I A362343 #21 Apr 23 2023 02:19:05
%S A362343 1,2,4,8,64,128,16384,32768,1073741824,2147483648,4611686018427387904,
%T A362343 9223372036854775808,85070591730234615865843651857942052864,
%U A362343 170141183460469231731687303715884105728,28948022309329048855892746252171976963317496166410141009864396001978282409984
%N A362343 Sequence that alternately doubles and squares the previous number; a(0) = 1.
%F A362343 a(0) = 1; a(n) = a(n-1)*2 if n is odd, otherwise a(n) = a(n-1)^2.
%F A362343 a(n) = 2^A075427(n-1), for n>=1.
%o A362343 (Python)
%o A362343 def A362343(n): return 1<<((1<<(n>>1)+1)-1 if n&1 else (1<<(n>>1)+1)-2) # _Chai Wah Wu_, Apr 23 2023
%Y A362343 Cf. A075427.
%Y A362343 Subsequence of A000079.
%K A362343 nonn,easy
%O A362343 0,2
%A A362343 _Christopher Roat_, Apr 17 2023