prob065-grondilu
say (^100)
.map({ $_ == 0 ?? 2 !! $_ % 3 == 2 ?? 2*($_ div 3 + 1) !! 1 })
.reverse
.reduce( 1.FatRat / * + * )
.numerator
.comb
.sum;
say (^100)
.map({ $_ == 0 ?? 2 !! $_ % 3 == 2 ?? 2*($_ div 3 + 1) !! 1 })
.reverse
.reduce( 1.FatRat / * + * )
.numerator
.comb
.sum;
prob041-heyajulia-alternative.raku
Resoures
Learning
The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.