A170804 Partial sums of (A006899, prefixed by a 1).
1, 2, 4, 7, 11, 19, 28, 44, 71, 103, 167, 248, 376, 619, 875, 1387, 2116, 3140, 5188, 7375, 11471, 18032, 26224, 42608, 62291, 95059, 154108, 219644, 350716, 527863, 790007, 1314295, 1845736, 2894312, 4488635, 6585787, 10780091, 15563060, 23951668, 38300575
Offset: 1
Keywords
Programs
-
Python
from sympy import integer_log def A170804(n): return 1 if n == 1 else ((a:=1<
>1) if 6**(k:=integer_log(m:=3**(n-2),6)[0])<<1 >1)+(1< Chai Wah Wu, Feb 05 2025
Comments