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.

A135481 a(n) = 2^A007814(n+1) - 1.

This page as a plain text file.
%I A135481 #53 Apr 05 2023 09:40:36
%S A135481 0,1,0,3,0,1,0,7,0,1,0,3,0,1,0,15,0,1,0,3,0,1,0,7,0,1,0,3,0,1,0,31,0,
%T A135481 1,0,3,0,1,0,7,0,1,0,3,0,1,0,15,0,1,0,3,0,1,0,7,0,1,0,3,0,1,0,63,0,1,
%U A135481 0,3,0,1,0,7,0,1,0,3,0,1,0,15,0,1,0,3,0,1,0,7,0,1,0,3,0,1,0,31,0,1,0,3,0,1,0
%N A135481 a(n) = 2^A007814(n+1) - 1.
%C A135481 This is Guy Steele's sequence GS(1, 6) (see A135416).
%H A135481 Antti Karttunen, <a href="/A135481/b135481.txt">Table of n, a(n) for n = 0..16384</a>
%F A135481 a(n) = A006519(n+1) - 1. - _R. J. Mathar_, Feb 10 2016
%p A135481 GS(1,6,200); # see A135416
%t A135481 Table[BitAnd[i, BitNot[i+1]], {i, 0, 200}] (* _Peter Luschny_, Jun 01 2011 *)
%o A135481 (PARI) a(n) = 2^valuation(n+1, 2)-1; \\ _Michel Marcus_, Nov 19 2017
%o A135481 (PARI) a(n) = bitand(bitneg(n+1), n); \\ _Ruud H.G. van Tol_, Apr 05 2023
%o A135481 (Julia)
%o A135481 using IntegerSequences
%o A135481 A135481List(len) = [Bits("CNIMP", n+1, n) for n in 0:len]
%o A135481 println(A135481List(100))  # _Peter Luschny_, Sep 25 2021
%o A135481 (Python)
%o A135481 def A135481(n): return ~(n+1)&n # _Chai Wah Wu_, Jul 06 2022
%Y A135481 Cf. A006519, A007814, A135416, A140670, A136013 (partial sums).
%K A135481 nonn,easy
%O A135481 0,4
%A A135481 _N. J. A. Sloane_, based on a message from Guy Steele and _Don Knuth_, Mar 01 2008
%E A135481 a(0) = 0 prepended by _Andrey Zabolotskiy_, Oct 08 2019, based on _Lothar Esser_'s contribution