Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Nov 18th, 2017
77
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.15 KB
| None
|
0
0
raw
download
clone
embed
print
report
#Lattice paths
def fact(n)
if (n==1)
return 1
end
return n*fact(n-1)
end
def numPaths()
p fact(40)/(fact(20)*fact(20))
end
numPaths
Add Comment
Please,
Sign In
to add comment
Public Pastes
Ulica (Bakurski)
Java | 7 min ago | 3.98 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 17 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 21 min ago | 0.39 KB
Pobieranie YT
PowerShell | 57 min ago | 0.49 KB
Character Name Generator (ChatGPT)
C# | 1 hour ago | 6.15 KB
about
Lua | 1 hour ago | 1.44 KB
linq
Lua | 1 hour ago | 0.20 KB
sha256
Python | 1 hour ago | 5.71 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!