Enigmatic Code

Programming Enigma Puzzles

Enigma 1749: Genotype

From New Scientist #2917, 18th May 2013 [link]

In a new design of cellphone, each of the 10 number keys is associated with some letters of the alphabet. All letters each appear once, but are not in the usual alphabetical order found on a standard phone. For example, W appears on the zero button, S is on the 5 button and N is on the 9 button. It turns out that:

NEW = SCIENTIST ÷ ENIGMA.

What number is GENETICS?

[enigma1749]

Advertisements

3 responses to “Enigma 1749: Genotype

  1. Jim Randell 15 May 2013 at 7:01 pm

    The following Python program runs in 46ms.

    from enigma import irange, printf
    
    # it is obvious that E = 5 and T = 0
    
    NEW = 950
    
    for ENIGMA in irange(590000, 599999):
      SCIENTIST = str(NEW * ENIGMA)
      # check S = E = 5
      if not(SCIENTIST[0] == SCIENTIST[3] == SCIENTIST[7] == '5'): continue
      # check T = 0
      if not(SCIENTIST[5] == SCIENTIST[8] == '0'): continue
      # check N = 9
      if not(SCIENTIST[4] == '9'): continue
      # check I
      ENIGMA = str(ENIGMA)
      if not(SCIENTIST[2] == SCIENTIST[6] == ENIGMA[2]): continue
    
      GENETICS = ENIGMA[3] + '5950' + SCIENTIST[2::-1]
    
      printf("GENETICS={GENETICS} [{NEW} x {ENIGMA} = {SCIENTIST}]")
    

    Solution: GENETICS = 25950365.

  2. ahmet cetinbudaklar 16 May 2013 at 8:30 am

    By knowing E,N,T,S and W and taking into account of the phone limitations in the division of SCIENTİST by NEW one can reach GENETİCS by a simple trial and error method

  3. Ahmet Saracoğlu 16 May 2013 at 9:50 am
    def genotype():
    	for enigma in range(590000,599999):
    		Enigma=str(enigma)
    		e,nn,ii=Enigma[0],Enigma[1],Enigma[2]
    
    		new=900+(10*int(e))
    
    		scientist=str(new*enigma)
    
    		s,i,t,ee,n=scientist[0],scientist[2],scientist[5],scientist[3],scientist[4]
    
    		if s=='5' and s==scientist[7] and i==scientist[6]and ee==e and t==scientist[8]and nn==n and ii==i:
    			print (Enigma[3],e,n,e,t,i,scientist[1],s)
    

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: