Riordan numbers: Difference between revisions
Content added Content deleted
(New post.) |
(Added Easylang) |
||
Line 483: | Line 483: | ||
The 10000th is 19927418577260688844...71395322020211157137 (4765 digits). |
The 10000th is 19927418577260688844...71395322020211157137 (4765 digits). |
||
</pre> |
</pre> |
||
=={{header|EasyLang}}== |
|||
<syntaxhighlight> |
|||
cnt = 32 |
|||
print "First " & cnt & " Riordan numbers:" |
|||
app = 1 ; ap = 0 |
|||
print app ; print ap |
|||
for n = 2 to cnt - 1 |
|||
a = (n - 1) * (2 * ap + 3 * app) / (n + 1) |
|||
print a |
|||
app = ap |
|||
ap = a |
|||
. |
|||
</syntaxhighlight> |
|||
=={{header|F_Sharp|F#}}== |
=={{header|F_Sharp|F#}}== |