%I A127266
%S A127266 0,1,0,1,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,0,0,0,0,1,1,0,1,1,0,1,1,1,0,0,1,
%T A127266 0,0,1,1,1,0,0,1,0,0,0,1,0,0,0,0,0,1,0,1,0,1,0,0,1,0,1,0,0,1,1,1,0,0,1,
%U A127266 1,0,0,0,0,1,0,0,1,0,1,1,1,0,0,1,1,0,0,1,1,1,1,1,1,1,1,1,1,0,0,1,0,0,0
%N A127266 Expansion of 1/Pi in base 2.
%o A127266 .(Python program. Replace leading dots by spaces)
%o A127266 .#!/usr/bin/python
%o A127266 ..........
%o A127266 .from math import tan
%o A127266 ..........
%o A127266 .for k in range(60):
%o A127266 ........ if tan(2**k) > 0:
%o A127266 ................ print '0'
%o A127266 ........ else:
%o A127266 ................ print '1'
%o A127266 ..........
%Y A127266 Cf. A004601.
%Y A127266 Sequence in context: A138710 A116865 A157687 this_sequence A083923 A101309
A141474
%Y A127266 Adjacent sequences: A127263 A127264 A127265 this_sequence A127267 A127268
A127269
%K A127266 base,easy,nonn
%O A127266 1,1
%A A127266 Thomas Klemm (thomas.klemm(AT)adnouvm.ch), Mar 27 2007
|