





def 			SCREAMING_SNAKE_CASE__     (					_lowercase    :   int )      ->       int:




		'''simple docstring'''
		return n * (2 * n - 1)


def 			SCREAMING_SNAKE_CASE__     (					_lowercase    :   int )      ->       bool:




		'''simple docstring'''
		lowercase__				:			Optional[int]            =		(1 + 24 * n) ** 0.5
		return ((1 + root) / 6) % 1 == 0


def 			SCREAMING_SNAKE_CASE__     (					_lowercase    :   int = 144 )      ->       int:




		'''simple docstring'''
		lowercase__				:			int            =		start
		lowercase__				:			Tuple            =		hexagonal_num(_lowercase )
		while not is_pentagonal(_lowercase ):
				n += 1
				lowercase__				:			Dict            =		hexagonal_num(_lowercase )
		return num


if __name__ == "__main__":
			print(F'{solution()} = ')









from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


__UpperCamelCase:  Any   =   {
    """configuration_deta""": ["""DETA_PRETRAINED_CONFIG_ARCHIVE_MAP""", """DetaConfig"""],
}

try:
			if not is_vision_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			__UpperCamelCase:  Tuple   =   ["""DetaImageProcessor"""]

try:
			if not is_torch_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			__UpperCamelCase:  List[str]   =   [
			    """DETA_PRETRAINED_MODEL_ARCHIVE_LIST""",
			    """DetaForObjectDetection""",
			    """DetaModel""",
			    """DetaPreTrainedModel""",
			]


if TYPE_CHECKING:
			from .configuration_deta import DETA_PRETRAINED_CONFIG_ARCHIVE_MAP, DetaConfig

			try:
						if not is_vision_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .image_processing_deta import DetaImageProcessor

			try:
						if not is_torch_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .modeling_deta import (
						    DETA_PRETRAINED_MODEL_ARCHIVE_LIST,
						    DetaForObjectDetection,
						    DetaModel,
						    DetaPreTrainedModel,
						)

else:
			import sys

			__UpperCamelCase:  int   =   _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)


