STATUS
reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
return sum(stirling(n-1, k, kind=2)+ach(n-1, k)>>1 for k in range(n)) # Chai Wah Wu, Oct 15 2024
(Python)
from functools import lru_cache
from sympy.functions.combinatorial.numbers import stirling
def A103293(n):
if n == 0: return 1
@lru_cache(maxsize=None)
def ach(n, k): return (n==k) if n<2 else k*ach(n-2, k)+ach(n-2, k-1)+ach(n-2, k-2)
return sum(stirling(n-1, k, kind=2)+ach(n-1, k)>>1 for k in range(n)) # Chai Wah Wu, Oct 15 2024
approved
editing
proposed
approved
editing
proposed
Row sums of A284949.
approved
editing
reviewed
approved
proposed
reviewed