This website requires JavaScript.
Explore
Help
Sign In
cosmonaut
/
euler
Watch
1
Star
0
Fork
You've already forked euler
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
5061e75030
euler
/
ruby
/
euler048.rb
4 lines
57 B
Ruby
Raw
Blame
History
def
series
(
n
)
(
1
..
n
)
.
map
{
|
x
|
x
**
x
}
.
inject
(
:+
)
end
Reference in New Issue
View Git Blame
Copy Permalink