OFFSET
1,1
COMMENTS
Presumably this is the same as A102557? - Andrew S. Plewe, Apr 18 2007
A102557(n) equals a(n) for n <= 55000. - G. C. Greubel, Oct 20 2024
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..828
Eric Weisstein's World of Mathematics, Circle Line Picking
FORMULA
a(n) = 4*A061549(n-1).
EXAMPLE
1, 4/Pi, 2, 32/(3*Pi), 6, 512/(15*Pi), 20, 4096/(35*Pi), ...
MATHEMATICA
Table[Power[2, 4*n-2 - DigitCount[n-1, 2, 1]], {n, 30}] (* G. C. Greubel, Oct 20 2024 *)
PROG
(Magma)
A093581:= func< n | Power(2, 4*n-2-(&+Intseq(2*(n-1), 2))) >;
[A093581(n): n in [1..30]]; // G. C. Greubel, Oct 20 2024
(SageMath)
def A093581(n): return pow(2, 4*n-2 - sum((2*n-2).digits(2)))
[A093581(n) for n in range(1, 31)] # G. C. Greubel, Oct 20 2024
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
Eric W. Weisstein, Apr 01 2004
STATUS
approved