Skip to main content

Featured Post

Ed Scheidts Mayan Symbols - Can we solve the puzzle?

In this post I want to talk about a thing from the Kryptos universe that are not directly related to the statue. But i think it may be an indirect hint to some Kryptos related methods. The Mayan Symbols in Ed Scheidts driveway I think everyone who knows Kryptos knows Ed Scheidt. The former Chairman of the Cryptographic Center at the CIA and founder of the cryptosystems used around the Kryptos statue. As already shown in Part 4 of my Kryptos series, in the driveway of Ed Scheidts house, there are two symbols: Figure 1 - Garage driveway of Ed Scheidt We denote the left symbol set with $S_1$ and the right one with $S_2$. It took me a while to find his house on Google Maps - Street View. To save you some time, here is the link with a view on the driveway. I you go back in time in Streetview, you can see that the symbols were already there in 2012. But it is impossible to say when they were built. $S_1$ is clearly visible from the street, $S_2$ is hidden in the view. But you can u...

What if $\sigma_0(n)$ could be computed efficiently?

What would be the consequences if the sum of divisors function with $k=0$ could be computed efficiently, that is polynomial in $\log (n)$ if $n$ is the input to $\sigma_0(n)$? Note that if $n=p_1^{e_1}p_2^{e_2}...p_m^{e_m}$ then $$\sigma_0(n) = \sum_{d|n} d^0 =  \sum_{d|n} 1 = (e_1+1)(e_n+1)...(e_m+1)$$ For square-free numbers $n$, this is always a power of $2$, hence $\log_2(\sigma_0(n))$ gives the number of prime factors in this case. Furthermore, the famous AKS-algorithm gives a deterministic polynomial time algorithm, that decides if $\sigma_0(n) = 2$ or not, i.e. $n$ is prime or composite.

For the general case, Terence Tao gave an heuristic argument that generally this should be as hard as factoring a number:

"There is a folklore observation that if one was able to quickly count the number of prime factors of an integer n, then one would likely be able to quickly factor n completely. So the counting-prime-factors  problem is believed to have comparable difficulty to factoring itself."


Tao argues that such a prime factor counting algorithm would probably also work over other number fields, i.e., the gaussian integers. For example, assume that we already know that $n$ has two prime factors, i.e. $n=pq$ when factored over the integers. Now assume you apply your magic algorithm that returns the number of prime factors of $n$ over $\mathbb{Z}[i]$: Based on the result, one could conclude non-trivial information about the primes $p$ and $q$. That is, because the result will be either:
  1. Two prime factors $\rightarrow$ both primes $p$, $q$ (so one over the integer) are of the form $3+4k$
  2. Three prime factors $\rightarrow$ one prime of $p,q$ is of the form $3+4k$ and the other of the form $1+4k$
  3. Four prime factors $\rightarrow$ both primes $p$ and $q$ are of the form $1+4k$
The reason is, that gaussian primes are elements $a+bi$ whereof either
  • a or b is zero and the other is a prime of the form $3+4k$
  • both a non-zero and $a^2+b^2$ is a prime of the form $1+4k$.
E.g. assume $n = pq$ and $p \equiv 1\pmod{4}$ and $q = \equiv 3\pmod{4}$. If you factor $n$ over $\mathbb{Z}[i]$ you get three primes $\pi_1 = q$ (or associates) and $\pi_2 = (u+vi)$ and $\pi_3 = (u-vi)$ such that $p_2\pi_3 = u^2-uvi+uvi-v^2i^2=u^2+v^2 = p$. I.e. the factorization of $41\cdot 43$ over the gaussian integers is $$41\cdot 43 = 43\cdot(-4-5i)\cdot(-4+5i)$$
If one repeats the procedure with different number fields, at the end one could use the chinese remainder theorem to reconstruct $p$ and $q$.
However, the assumption that any algorithm that counts the number of prime factors of $n$ over the integers efficiently, will work over other number fields is not guaranteed to be true. Perhaps the algorithm needs the ordering property of $\mathbb{Z}$ to work successfully, which does not exists over $\mathbb{Z}[i]$.

So, we restrict our attention to an algorithm that only counts the number of prime factors of an integer $n$ over the integers efficiently. Otherwise, since it could help to factorize integers, it seems too powerful and such an algorithm probably does not exist. Can such an algorithm nevertheless improve on open problems or help to make things more efficient?

I think, one of its major contribution would be to help which factoring algorithm to choose given a target integer $n$ to minimize the overall complexity. Some algorithms have a running-time that is based on the smallest prime factor of $n$. So if the algorithms detects $4$ prime factors, then the smallest factor must be less than $n^{1/4}$, and probably one should pick the ECM method to search for this factor. If it happens that $n$ has only two factors and then perhaps choosing a general purpose algorithm like the general number field sieve seems to be more appropriate.

However, this yield seems a little thin to me, in respect of an algorithm that manages to return non-trivial information about a prime-factorization. Are there any other improvements that such an algorithm will cause?

Comments

Popular posts from this blog

Kryptos - The Cipher (Part 4) - Correctly positioned decryption of the word BERLIN

EASTNORTHEAST - This is not exactly the hint Jim Sanborn (JS) gave for K4 on the 29th of January this year. He only gave NORTHEAST - which refers to the positions 26-34 of K4's plaintext.  Beside BERLIN and CLOCK it is the third revealed plaintext word of K4. However, also this hint does not seem to help much.  However, it just so happened, that a member in the yahoo kryptos group had a conversation with Jim Sanborn due to a submitted solution. Sandborn's answer to the question contained again the last clue which surprisingly was EASTNORTHEAST at position 22-34. Jim Sanborns compass rose at CIA There is disagreement if Jim revealed this on purpose or he did it accidentially, but the new extended clue seem to be serious and valid.Interestingly, EASTNORTHEAST is exactly the direction which is illustrated on the compass rose on one of the stones around kryptos, also created by Jim Sanborn. Actually, i dont really kn...

Kryptos - The Cipher (Part 1) - Introduction

Introduction. Since I think that KRYPTOS does not need any introduction, I will only give you a brief description of one of the most famous and only partially solved ciphers known today: KRYPTOS - Von Jim Sanborn - Jim Sanborn, CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=8253447 KRYPTOS was constructed in Nov. 1990 on the ground of the CIA Headquarter in Langley, Virginia by Jim Sanborn It contains 4 ciphers (K1,K2,K3,K4) on its left side and some kind of Vigenère-Table on its right side K1, K2 and K3 were solved by James Gillogly in 1999. Afterwards, the CIA and later the NSA claimed that they had a solution to the first three ciphers at an earlier point in time Ed Scheidt, a cryptoanalyst and former director of the CIA, gave Sanborn the input of possible cryptographic techniques to use K1 is a variant of the Vigenère-Cipher (Quagmire 3) with the codewords KRYPTOS and PALIMPSES...

Kryptos - The Cipher (Part 3)

This post is about is more or less a collection of several approaches and facts that has been said as well as some speculations. B-ary integer representation According to [1] during a Question and Answer round, Jim Sanborn was asked again about the hint BERLIN. The question was if N decodes to B, Y decodes to E, etc, etc. and Jim confirmed it does. Emphatically . It is written, that Jim Sanborn rattled through the entire crib: \begin{align}   \texttt{N} &\stackrel{\text{decode}}{\rightarrow} \texttt{B} \\   \texttt{Y} &\stackrel{\text{decode}}{\rightarrow}  \texttt{E} \\   \texttt{P} &\stackrel{\text{decode}}{\rightarrow}  \texttt{R} \\   \texttt{V} &\stackrel{\text{decode}}{\rightarrow}  \texttt{L} \\   \texttt{T} &\stackrel{\text{decode}}{\rightarrow}  \texttt{I} \\   \texttt{T} &\stackrel{\text{decode}}{\rightarrow}  \texttt{N} \end{align} When the same q...