A332026 Savannah problem: number of new possibilities after n weeks.
3, 4, 3, 5, 4, 4, 6, 5, 5, 5, 7, 6, 6, 6, 6, 8, 7, 7, 7, 7, 7, 9, 8, 8, 8, 8, 8, 8, 10, 9, 9, 9, 9, 9, 9, 9, 11, 10, 10, 10, 10, 10, 10, 10, 10, 12, 11, 11, 11, 11, 11, 11, 11, 11, 11, 13, 12, 12, 12, 12, 12, 12, 12, 12, 12
Offset: 1
Keywords
Examples
After one week, there are 3 possible populations, depending on which animal entered the savannah: one zebra (Z), one fed lion (F), one hungry lion (H). After two weeks, from Z we get: 2Z, ZF, and (ZH->) F; from F (which becomes H in the second step) we get: (ZH->) F, FH and 2H. From H (which becomes the empty set in the first step): Z, F and H. Overall, there are 4 new possible populations that were not possible after the first week: 2Z, ZF, FH, and 2H.
Programs
-
Python
from math import isqrt from sympy.ntheory.primetest import is_square def A332026(n): return (isqrt(m:=n<<3)+1>>1)+is_square(m-7)+1 # Chai Wah Wu, Jun 07 2025
Comments