

def       a__					(		UpperCAmelCase							:      int      )  ->						int:
  UpperCAmelCase	:							list[list[int]]						=			[[0 for _ in range(UpperCAmelCase      )] for _ in range(m + 1      )]
  for i in range(m + 1      ):
    UpperCAmelCase	:							Union[str, Any]						=			1

  for n in range(m + 1      ):
    for k in range(1    ,			UpperCAmelCase      ):
      memo[n][k] += memo[n][k - 1]
      if n - k > 0:
        memo[n][k] += memo[n - k - 1][k]

  return memo[m][m - 1]


if __name__ == "__main__":
     import sys

     if len(sys.argv) == 1:
          try:
               _lowerCamelCase    :       Optional[int]        =							int(input("Enter a number: ").strip())
               print(partition(n))
          except ValueError:
               print("Please enter a number.")
     else:
          try:
               _lowerCamelCase    :       Union[str, Any]        =							int(sys.argv[1])
               print(partition(n))
          except ValueError:
               print("Please pass a number.")








from math import log

from scipy.constants import Boltzmann, physical_constants

_lowerCamelCase    :       Tuple        =							3_0_0  # TEMPERATURE (unit = K)

def       a__					(		UpperCAmelCase							:      float    ,			UpperCAmelCase							:      float    ,			UpperCAmelCase							:      float    ,			)  ->						float:

  if donor_conc <= 0:
    raise ValueError('''Donor concentration should be positive'''      )
  elif acceptor_conc <= 0:
    raise ValueError('''Acceptor concentration should be positive'''      )
  elif intrinsic_conc <= 0:
    raise ValueError('''Intrinsic concentration should be positive'''      )
  elif donor_conc <= intrinsic_conc:
    raise ValueError(
        '''Donor concentration should be greater than intrinsic concentration'''      )
  elif acceptor_conc <= intrinsic_conc:
    raise ValueError(
        '''Acceptor concentration should be greater than intrinsic concentration'''      )
  else:
    return (
        Boltzmann
        * T
        * log((donor_conc * acceptor_conc) / intrinsic_conc**2      )
        / physical_constants["electron volt"][0]
    )


if __name__ == "__main__":
     import doctest

     doctest.testmod()





