Jacobsthal numbers: Difference between revisions
m
→{{header|Python}}
Line 1,783:
'''Infinite sequence of terms of OEIS A001045
'''
return jacobsthalish
# jacobsthalish :: (Int, Int) -> [Int]
def jacobsthalish(
'''Infinite sequence of jacobsthal-type series
beginning with a, b
Line 1,793:
def go(ab):
a, b = ab
return a,
return unfoldr(go)(
Line 1,811:
(
'Jacobsthal-Lucas numbers',
30, jacobsthalish
),
(
|