Skip to main content

Problem Solving : Cryptarithmatic Problem 1 :Find the value of P from [ A L E * R U M = E R M P N E]


ALE

* RUM

------------


W I N E

W U W L

E W W E

--------------------
E R M P N E

______________


Here is the solution: 0 to 9 , 10 numbers Should be replaced with those following Characters A, L, E, R, U, M, W, I, N, P so 10 characters replaced with 10 digits from 0 to 9 Consider M * ALE = WINE

and U * ALE = WUWL


and R * ALE = EWWE

See in last R *ALE = EWWE

R * E = E will be last digit so it possible only by multiplication of 5 with odd values so 1 * 5 or 


3* 5 or 7*5 and 9*5 = last unit digit always 5 so E = 5 but 5* 5 not possible because R is not 

equal to W.....and look at multiplied value N + L = N so any value on addition with 0 will give 

you result as same hence N + 0 = N then L = 0

so remaining A and R are left R possible values are R = 1, 3, 7, 9 but 1 is not possible because 


1 * ALE is equal to ALE and R = 3, 7, 9 are possible......

Already we know that E = 5 and L = 0 then

R * A05 = 5WW5 (apply logic here with R = 3, 7 , 5)

for example R =3 means 3 * A05 = (51)15 (EWWE) so 3 not possible because 3 multiple with 


anyother number ust give result as 51 so it's impossible

R= 7 then 7 *A05 = (53)35 again 7 also not possible because multiplication of 7 never give the 


value 53

so R= 9 then 9*A05 = (54)45 but look at it 9 is possible because if 6*9 =54 so A= 6 hence then 


we found all values

9 * 605 = 5445 upto here we know that A= 6 L=0 E=5 R=9 and W = 4 remaining possible digits 


are (1, 2,3,7,8)

605*9UM
------------
4IN5
4U40
5445
--------------------
5RMPN5

look at U * 605 = 4U40

U*5 =40 so U = 8 hence 8 *605 = 4840 remaining digits are (1,2,3,7)

and look at 605 * M = 4IN5 here M is not 1 because 1 * 605 is 605 but not possible because


4IN5 as well as 2 is not also not possible because 2 * 5 = (1)0 in unit digit o not possible 

because 4IN5 hence 3 and 7 are possible so


if M=3


3 * 605 = 1815 = 4IN5 so 3 also not possible because 4IN5 not matched with 1815

hence M=7 then 7 * 605 = 4235 = 4IN5 hence pattern has been matched so M=7 and I = 2 and 


finally N = 3....

now what is the remaining digit only 1 hence you can quickly answer that (P = 1)

so totally we got A= 6 L=0 E=5 R=9 W = 4 M=7 and I = 2 and finally N = 3

605*987
------------
4235
4840
5445
--------------------
597135

hence here you will get P = 1

Comments

Popular posts from this blog

"How to maintain or retain tabs in same tab after button click events or postback?" using JQuery in ASP.NET C#

In this post I'll share an details about " How to maintain or retain tabs in same tab after button click events or postback? " Step 1: you need to download Jquery and JQueryUI Javascript libraries from this site http://jqueryui.com/ Step 2: As usually you can create ASP.NET website from Visual Studio IDE and add Jquery and JqueryUI plugins in the header section of aspx page. Step 3: Add HiddenField control inside aspx page which is very useful to retain tab in same page Step 4: Use the HiddenField ID in Jquery code to indicate that CurrentTab Index Step 5: In code Behind, using Enumerations concept give the tab index values as user defined variable  Step 6: Use the Enum values in every Button click events on different tabs to check that tab could be retained in the same tab Further, Here I'll give the code details and snap shot pictures, 1. Default.aspx: Design Page First Second Third ...

Guidewire Related Interview Question and answers part 1

common Guidewire questions and answers 20 Guidewire BC Q&A Top 100 Guidewire Interview FAQ Guidewire Claimcenter 20 Interview Questions Guidewire Rating concepts

Login and Registration forms in C# windows application with Back end Microsoft SQL Server for data access

In this article, I'm gonna share about how to make login and register form with MS SQL database; 1. Flow Chart Logic 2. Normal Features 3. Form Designs Login Form Design Sign in Form Design Password Retrieve Form 4. Database Design and SQL queries and Stored Procedure Create new Database as "schooldata" create table registerdata (  ID int identity,  Username nvarchar(100),  Password nvarchar(100),  Fullname  nvarchar(100),  MobileNO nvarchar(100),  EmailID nvarchar(100)  ) select * from registerdata create procedure regis (  @Username as nvarchar(100),  @Password as nvarchar(100),  @Fullname as nvarchar(100),  @MobileNO as nvarchar(100),  @EmailID as nvarchar(100)  ) as begin insert into registerdata (Username, Password, Fullname, MobileNO,EmailID) values (@Username, @Password, @Fullname, @MobileNO, @EmailID) ...