human
Largest N digit number in Base B | Function to print the largest N - digit numbers of base b.
Find the largest N digit number in base b using the formula B ^ N - 1.
Print the largest number.
Given number and base.
Function Call"
Solution in Python:
assistant
#Here is code to largest N digit number in Base B and the other steps required.
 def findNumbers ( n , b ) :
	largest = pow ( b , n ) - 1
	print ( largest )
N , B = 2 , 5
findNumbers ( N , B )