
"""simple docstring"""


import math






def  lowercase						(	lowerCAmelCase__						):

			if not isinstance(lowerCAmelCase__	,lowerCAmelCase__						):
						lowerCamelCase_					=  f"Input value of [number={number}] must be an integer"
						raise TypeError(lowerCAmelCase__						)

			if number < 1:
						lowerCamelCase_					=  f"Input value of [number={number}] must be > 0"
						raise ValueError(lowerCAmelCase__						)
			elif number == 1:
						return 3
			elif number == 2:
						return 5
			else:
						lowerCamelCase_					=  int(math.log(number // 3	,2						)						) + 2

						lowerCamelCase_					=  [3, 5]
						lowerCamelCase_					=  2
						lowerCamelCase_					=  3
						for block in range(1	,lowerCAmelCase__						):
									for _ in range(lowerCAmelCase__						):
												proth_list.append(2 ** (block + 1) + proth_list[proth_index - 1]						)
												proth_index += 1
									increment *= 2

			return proth_list[number - 1]


if __name__ == "__main__":
						import doctest

						doctest.testmod()

						for number in range(11):
												A_    							=					0
												try:
																		A_    							=					proth(number)
												except ValueError:
																		print(f"ValueError: there is no {number}th Proth number")
																		continue

												print(f"The {number}th Proth number: {value}")








"""simple docstring"""







import requests

def  __SCREAMING_SNAKE_CASE		(			lowerCamelCase_:							str     ,		lowerCamelCase_:							str ):
						"""simple docstring"""






						snake_case   :			List[str]						    = {"Content-Type": "application/json"}
						snake_case   :			int						    = requests.post(lowerCamelCase_     ,		json={"text": message_body}     ,		headers=lowerCamelCase_ )
						if response.status_code != 2_0_0:
												snake_case   :			str						    = (
												    "Request to slack returned an error "
												    f'''{response.status_code}, the response is:\n{response.text}'''
												)
												raise ValueError(lowerCamelCase_ )


if __name__ == "__main__":
			# Set the slack url to the one provided by Slack when you create the webhook at
			# https://my.slack.com/services/new/incoming-webhook/
			send_slack_message('<YOUR MESSAGE BODY>', '<SLACK CHANNEL URL>')



