138 Special isosceles triangles.sf 246 B

1234567891011121314151617
  1. #!/usr/bin/ruby
  2. # Daniel "Trizen" Șuteu
  3. # Date: 22 October 2017
  4. # https://github.com/trizen
  5. # Runtime: 0.126s
  6. # https://projecteuler.net/problem=138
  7. # See also:
  8. # https://oeis.org/A007805
  9. say sum(1..12, {|n|
  10. fibonacci(6*n + 3) / 2
  11. })