Python | sympy partitions.RGS_enum() method
Last Updated :
27 Aug, 2019
With the help of sympy.combinatorics.partitions.RGS_enum()
method, we can get the total number unrestricted growth string of size m by using sympy.combinatorics.partitions.RGS_enum()
method.
Syntax : sympy.combinatorics.partitions.RGS_enum(m)
Return : Return a total number of unrestricted growth string.
Example #1 :
In this example we can see that by using sympy.combinatorics.partitions.RGS_enum()
method, we are able to get the total number of unrestricted growth string of size m.
from sympy.combinatorics.partitions import RGS_enum
from sympy import *
gfg = RGS_enum( 5 )
print (gfg)
|
Output :
52
Example #2 :
from sympy.combinatorics.partitions import RGS_enum
from sympy import *
gfg = RGS_enum( 16 )
print (gfg)
|
Output :
10480142147
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...