Pell numbers: Difference between revisions
Content added Content deleted
(J) |
(J: bugfix (NSW)) |
||
Line 139: | Line 139: | ||
2 3 5 11 13 29 41 53 59 89</lang> |
2 3 5 11 13 29 41 53 59 89</lang> |
||
The NSW numbers are |
The NSW numbers are the sums of (non-overlapping) pairs of pell numbers, or: |
||
<lang J> |
<lang J> _2 +/\ nextPell^:20(0 1x) |
||
1 7 41 239 1393 8119 47321 275807 1607521 9369319 54608393 |
|||
1 8 49 288 1681 9800 57121 332928 1940449 11309768 65918161</lang> |
|||
</lang> |
|||
The first ten pell based pythogorean triples would be: |
The first ten pell based pythogorean triples would be: |
||
Line 155: | Line 156: | ||
4684659 4684660 6625109 |
4684659 4684660 6625109 |
||
27304196 27304197 38613965</lang> |
27304196 27304197 38613965</lang> |
||
=={{header|Raku}}== |
=={{header|Raku}}== |