



'''simple docstring'''

def    __lowercase	(_SCREAMING_SNAKE_CASE   :Any							):
				if not isinstance(_SCREAMING_SNAKE_CASE     ,						_SCREAMING_SNAKE_CASE							):
								raise ValueError('''Input must be an integer'''							)
				if input_num <= 0:
								raise ValueError('''Input must be positive'''							)
				return sum(
				    divisor for divisor in range(1     ,						input_num // 2 + 1							) if input_num % divisor == 0							)


if __name__ == "__main__":
	import doctest

	doctest.testmod()








'''simple docstring'''






from collections.abc import Callable

import numpy as np


def    _snake_case  (	A					,       A					,       A					,       A					,       A			)		->       np.array:
							lowerCAmelCase__			  =      int(np.ceil((x_end - xa) / step_size			)			)
							lowerCAmelCase__			  =      np.zeros((n + 1,)			)
							lowerCAmelCase__			  =      ya
							lowerCAmelCase__			  =      xa

							for k in range(A			):
														lowerCAmelCase__			  =      y[k] + step_size * ode_func(A					,       y[k]			)
														lowerCAmelCase__			  =      y[k] + (
														    (step_size / 2) * (ode_func(A					,       y[k]			) + ode_func(x + step_size					,       A			))
														)
														x += step_size

							return y


if __name__ == "__main__":
		import doctest

		doctest.testmod()