Preprint
Article

This version is not peer-reviewed.

A Problem in Facial Digit Recasting of Positive Integers to Show P Does Not Equal NP

Submitted:

05 September 2026

Posted:

08 September 2026

You are already at the latest version

Abstract
The P versus NP problem, a conjecture formulated by Stephen Cook in 1971, is one of the most challenging problems in contemporary mathematics and theoretical computer science. A concise mathematical formulation of the problem reads: is P = NP? In longer phrasing, this asks: given a problem instance, if some additional data can be recognized fast enough as logically implying the existence of a solution (to the instance), then can a solution be computed fast enough? In this article we present the idea of facial digits of a positive integer and formulate a problem in recasting positive integers in terms of their facial digits to show P \( \neq \) NP.
Keywords: 
;  ;  ;  ;  

1. Introduction

More on terminologies, symbols and notations used in this article can be found in [3,6,8]. Our discussions also draw on the following topics 1 through 9 that can be found in some detail in the suggested references, some of which can be downloaded free of cost.
1.
Algorithms [3,4,5,10].
2.
Problem instance and size of an instance [1,4,5].
3.
A step in an algorithm [3,4,5].
4.
Polynomial-time algorithm [2,3,4,5,10].
5.
Class P and class NP of problems [2,3,4,5,9,11].
6.
Feasible solutions and proposed solutions [3,4,5,7].
7.
Certificates and certificate candidates; check and verification [4,5].
8.
Atomic sub-outputs of solutions [4,5].
9.
Bijective maps (or, bijections) [6,8].

1.1. Facial Digit Recasting

Throughout this article, N will denote the set of positive integers, W the set of non-negative integers (i.e., W = N ∪ 0 ), Z the set of integers and R the set of real numbers. This article adopts the number system with base 10. The set D 10 defined by D 10 = 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 is the set of all the digits base 10.
An real number y is said to be in explicit exponent form (e-e form, for brevity) if y is expressed in the form x k where (i) x and k are in R and (ii) the value of k is presented explicitly. Note that the value of x is, of necessity, given explicitly. For instance, 5 3 (where x = 5 and k = 3 ) and 125 1 (where x = 125 and k = 1 ) are in explicit exponent forms whereas 125 is not (since the index k is not explicit, albeit k = 1 is understood), though 125 = 5 3 = 125 1 .
Let n ∈ W . A facial digit of n is an element of D 10 that appears in the integral representation of n. The set F n will denote the set of all the facial digits of n. If d ∈ D 10 then d is a facial digit of n if and only if d ∈ F n .
For instance: (i) 30706 has four facial digits in all, and they are 0 , 3 , 6 , and 7, and so F 30706 = 0 , 3 , 6 , 7 .
(ii) If n = 25 35 then F 30706 = 2 , 5 , 3 .
A facial digit will be henceforth referred to as a fit.
Let A and B be nonempty sets. A function from A to B is an assignment that assigns a unique element of B to each element of A. The notation f : A → B means f is a function from A to B. In this case, A is the domain of f and B is the codomain of f.
Let A be a nonempty set. The set of all ordered pairs [8] x , y where x ∈ A and y ∈ A is denoted by A 2 or A x A and is called the Cartesian square of A. A binary operation in A is a function f : A 2 → A . Addition, subtraction and multiplication of real numbers are examples of binary operations in R . Division of real numbers is a conditional binary operation in R in the sense that it is a function from R x R − 0 to R ; i.e., the value of this function at x , y ∈ R x R is x y providing y ≠ 0 . Addition, subtraction and multiplication of integers are binary operations in Z .
If * is a binary operation in A and if x and y are elements of A then * assigns x , y (of A 2 ) to the element x * y (of A). In the operation (or, assignment) symbolized by * : x , y → x * y , each of x and y is called an operand (of the operation *).
The binary operations addition, subtraction, multipication and division in R are the four fundamental binary operations. The set O will denote the set consisting of these four operations.
Let A be a nonempty subset of R . An arithmetic expression over A is an expression X comprising finitely many binary operations and finitely many operands and having the following properties (AE1) and (AE2):
(AE1) Any binary operation appearing in X is a binary operation in R .
(AE2) Every operand appearing in X is an element of A - i.e., no element that is not in A is an operand in X .
Let n ∈ N and n ≥ 11 . A facial digit recasting or fit recasting of n is an equation n = S n a 1 , … , a k (where k ∈ N ) - written n = S n for brevity - subject to the following requirements / provisions from (F1) through (F5):
(F1) S n is an arithmetic expression over W − n in which a 1 , … , a k are distinct elements of W − n . (This necessiates: for each j = 1 , … , k , a j is an operand in S n and a j may or may not be given in explicit exponential form.)
(F2) Any of a 1 through a k may appear more than once in the expression S n .
(F3) For each j = 1 , … , k , F a j ⊂ F n and F a 1 ∪ … ∪ F a k = F n - i.e., each element of F n must appear at least once in S n , and no element outside F n appears anywhere in S n .
(F4) Other than a 1 through a k and the binary operation symbols that legitimise (F1), the only symbols allowed in S n are the three types of pairs of nesting symbols, namely, ★ , ★ and ★ (that are, respectively, parentheses, square brackets and braces), where ★ denotes the appropriate mathematically consistent content enclosed by the nesting symbols.
(F5) The result of mathematically executing the expression S n is n (thereby ensuring consistency with n = S n , where the = sign means that if the expression S n is computed mathematically then the resulting integer is n).
For brevity, a facial digit recasting of n will be called a fit-rec of n.

2. Some Definitions Connected to Fit Recasting

For m ∈ N , the set N ≥ m is defined as N ≥ m = a ∈ N : a ≥ m . For the remainder of this section, assume n ∈ N ≥ 11 .
Let F n = x 1 , … , x q and n = S n a 1 , … , a k be a fit-rec of n. For each digit x ∈ F n , the freqency of x in S n is denoted by f x , S n (or, simply, f x , if S n is clear from the context) and is defined to be the number of times x appears in the expression S n . The total frequency of the elements of F n in S n is denoted by F S n and is defined as F S n = Σ j = 1 q f x j , S n .
Each a j ( j = 1 , … , k ) appearing in S n is a cog of S n . The set a 1 , … , a k is the set of cogs of S n . The cardinality [8] of the set a 1 , … , a k is the base size of S n , denoted (for obvious reasons) by S n .
It is important to note that a 1 , … , a k is a set, and so the elements a 1 through a k are required to be distinct as elements of W − n (see F1 of Section 1). This necessiates that no two of these k cogs should be equal as elements of W − n . For instance, if a cog a j = 11 2 then none of the remaining cogs should have a value 121, regardless of the form any cog is presented in.

3. Examples for S N and F S N

1.
Let n = 112 . Then F 112 = 1 , 2 . The equation 112 = 11 2 − 11 + 2 is a fit-rec of n. We write n = S n where S n (or S 112 ) is the expression 11 2 − 11 + 2 . The cogs of S 112 are a 1 = 11 2 , a 2 = 11 and a 3 = 2 . Of these, only a 1 is in e-e form. The set a 1 , a 2 , a 3 = 11 2 , 11 , 2 is the set of cogs of S 112 , from which the base size of S 112 is S 112 = 3 ( = a 1 , a 2 , a 3 ). The frequencies of the elements of F 112 are given by: f 1 , S 112 = 4 (since the fit 1 appears exactly four times in S 112 ) and f 2 , S 112 = 2 (since the fit 2 appears exactly two times in S 112 ). So F S 112 = f 1 + f 2 = 6 .
2.
n = 34407 . F n = 0 , 3 , 4 , 7 . A fit-rec of n is n = S n where S n denotes the expression 300 70 + 30 + 400 7 + 3 + 70 x 7 − 77 − 3 − 3 . Here the cogs of S n are: a 1 = 300 , a 2 = 70 , a 3 = 30 , a 4 = 400 , a 5 = 7 , a 6 = 3 and a 7 = 77 , so that S n is S n a 1 , a 2 , a 3 , a 4 , a 5 , a 6 , a 7 . The set of cogs of S n is 300 , 70 , 30 , 400 , 7 , 3 , 77 . The base size of S n is 7, which is the cardinality of 300 , 70 , 30 , 400 , 7 , 3 , 77 . More elaborately, S n is a 1 a 2 + a 3 + a 4 a 5 + a 6 + a 2 x a 5 − a 7 − a 6 − a 6 .
In S n , the frequencies of the elements of F 34407 are given by: f 0 = 7 , f 3 = 5 , f 4 = 1 and f 7 = 6 , from which F S n = f 0 + f 3 + f 4 + f 7 = 19 .
3.
For n = 112 , the equation 112 = 11 x 12 − 11 x 2 + 2 is another fit-rec of n, written n = T n b 1 , b 2 , b 3 where T n b 1 , b 2 , b 3 denotes the expression b 1 b 2 − b 1 b 3 + b 3 with b 1 = 11 , b 2 = 12 and b 3 = 2 . Then f 1 , T 112 = 5 , f 2 , T 112 = 3 and F T 112 = 8 .
4.
On the other hand, 112 = Y 112 , where Y 112 is the expression 11 x 11 − 11 + 1 + 1 , although mathematically correct, is NOT a fit-rec of 112 since the element 2 ∈ F 112 does not appear in the expression Y 112 (see F3 of Section 1).
5.
n = 1089 . F n = 0 , 1 , 8 , 9 . A fit-rec of n is n = S n a 1 , a 2 , a 3 , a 4 , a 5 where S n a 1 , a 2 , a 3 , a 4 , a 5 is the expression 80 x 10 + 100 1 + 1 + 89 with a 1 = 80 , a 2 = 10 , a 3 = 100 , a 4 = 1 and a 5 = 89 . In S 1089 , f 0 = 4 , f 1 = 4 , f 8 = 2 and f 9 = 1 , from which F S 1089 = 11 .
6.
n = 112 . F n = 1 , 2 . A fit-rec of n is n = S n where S n a 1 , a 2 , a 3 , a 4 is the expression 12 11 − 1 − 11 + 2 + 1 with a 1 = 12 , a 2 = 11 , a 3 = 1 and a 4 = 2 . In S 112 , f 1 = 7 and f 2 = 2 , from which F S 112 = 9 .
NOTE 3.1. By now it is clear that a given n ∈ N ≥ 11 can have more than one fit-recs.

4. Some Observations About S N and F S N

Proposition 4.1.Let n ∈ N ≥ 11 . Then n has a fit-rec.
Proof. Let n be a k-digit element of N ≥ 11 . Write n = d k − 1 … d 0 where, for j = 0 , … , k − 1 , d j is the digit (i.e., element of D 10 ) in the 10 j th place in the integral representation of n. Clearly d k − 1 ≥ 1 .
Case 1: d 0 = 0 . Let s denote the positive integer n 10 . Let E X P 1 denote the expression d k − 1 d k − 1 + d k − 1 d k − 1 + d k − 1 d k − 1 + d k − 1 d k − 1 + d k − 1 d k − 1 + d k − 1 d k − 1 + d k − 1 d k − 1 + d k − 1 d k − 1 + d k − 1 d k − 1 + d k − 1 d k − 1 + 0 , subject to the following condition: if 1 ∉ F n then the ratio n k − 1 n k − 1 is not replaced by its value 1, and if 1 ∈ F n then the ratio n k − 1 n k − 1 may be replaced by 1.
Then the digits d 1 through d k − 1 appear in s, and d 0 (which is 0) appears in E X P 1 , from which n = E X P 1 s is a fit-rec of n.
NOTE 4.1. d k − 1 d k − 1 is presented explicitly ten times as a quotient in E X P 1 . Obviously the consequence of executing E X P 1 is 10. In effect, then, s is multiplied by 10, yielding n.
[For instance, if n = 2330 then s = 233 , d k − 1 = d 3 = 2 , so that d k − 1 d k − 1 = 2 2 , from which we have the fit-rec 2330 = 233 2 2 + 2 2 + 2 2 + 2 2 + 2 2 + 2 2 + 2 2 + 2 2 + 2 2 + 2 2 + 0 of n. Note also that 2 2 is never replaced by 1 in E X P 1 since 1 ∉ F n . ]
Case 2: d 0 ≠ 0 but some other facial digit of n is 0. In this case n has at least three digits since d k − 1 ≠ 0 . Let s = n − d 0 . Then n = s + d 0 is a fit-rec of n.
Case 3: d 0 ≠ 0 and 0 is not a facial digit of n. Let s = n − d 0 and t = s 10 .
Let E X P 2 denote the expression d 0 d 0 + d 0 d 0 + d 0 d 0 + d 0 d 0 + d 0 d 0 + d 0 d 0 + d 0 d 0 + d 0 d 0 + d 0 d 0 + d 0 d 0 .
Then n = t d 0 d 0 + d 0 d 0 + d 0 d 0 + d 0 d 0 + d 0 d 0 + d 0 d 0 + d 0 d 0 + d 0 d 0 + d 0 d 0 + d 0 d 0 + d 0 , giving the desired conclusion . Note that the quotient d 0 d 0 is presented explicitly exactly ten times in E X P 2 but this ratio may be replaced by 1 only if 1 ∈ F n , a situation similar to that seen in Case 1. •
Proposition 4.2.Let n ∈ N ≥ 11 and k ∈ N . Then there exists a fit-rec S n of n such that F S n ≥ k .
Proof.Case 1: There is no fit-rec n = S n of n such that F S n < k . In this case, F S n ≥ k for any fit-rec n = S n of n.
Case 2: There exists a fit-rec n = L n of n such that F L n < k . Let F L n = d < k . Let q be the quotient and r the remainder upon dividing k by d - written k = d q + r whre 0 ≤ r < d .
Sub-case 2.1. q is even. Write q = 2 s . Consider the expression L n − L n + … + L n − L n (s times), without ever replacing L n − L n by 0 - meaning the expression L n − L n appears exactly s times (which also means that L n appears exactly 2 s times) in this repeated addition of L n − L n . Let this expression of repeated addition be denoted by T . Clearly F T = 2 s d .
Note that T is an expression - we insist that T is not the value that results from executing the expression L n − L n + … + L n − L n (s times).
Clearly, the result of executing T is 0, from which n = T + L n is a fit-rec of n. Let S n denote the expression T + L n . Then n is (obviously) the result of executing S n . Further, F S n = 2 s d + d > d 2 s + r = d q + r = k , completeing this case.
Sub-case 2.2. q is odd. Write q = 2 s + 1 . Consider the expression L n − L n + … + L n − L n ( s + 1 times), without ever replacing L n − L n by 0 - meaning the expression L n − L n appears exactly s + 1 times (which also means that L n appears exactly 2 s + 2 times) in this repeated addition. Let this expression (of repeated addition) be denoted by T .
Then n = T + L n is a fit-rec of n. Let S n denote the expression T + L n . Then F T = d 2 s + 2 , from which F S n = d 2 s + 2 + d = d 2 s + 1 + 2 d > d 2 s + 1 + r = d q + r = k , completeing this case and the proof. •

5. A Computation Problem in Fit Recasting and Its Decision Variant

A variant of a problem Q is a formulation of Q that seeks a desired type of answer to a question accompanying a given instance of Q . Types of variants that are widely studied and used are: optimization, computation and decision.
An optimization variant of Q is a formulation of Q that asks for a solution of an optimum measure (which is either the maximum or the minimum of the concerned measure) to each instance of Q [1].
A computation variant of Q is a formulation that seeks to compute a stipulated type of solution to each instance of Q . The stipulations must comprise finitely many conditions.
A decision variant of Q is a formulation of Q in which each instance is accompanied by a decision question (about the instance) that asks for either a “yes” or a “no” response. The basic ingredients [1] of a decision variant are: the set of instances, the set of attempted solutions (i.e., certificate candidates [4,5]) and the predicate that decides whether an input certificate candidate yields a solution.
We shall be concerned only with computation and decision variants of the problem we discuss in Section 5 through Section 7. It is common to formulate a computation problem Q as a decision problem to find out if Q is in NP (see [2,3,4,5,9,11]).

5.1. The Computation Problem FITREC n

The following is a computation problem (in facial digit recasting) we call FITREC n .
Let n ∈ N ≥ 11 be the input instance. Find a fit-rec n = S n of n such that F S n ≥ n .
NOTE 5.1 . If n is the input instance and r is the input size in the problem FITREC n , then r = ⌈ l o g n ⌉ . Here log denotes base 2 logarithm. Then n is exponential in r (with base 2).

5.2. A Decision Variant of FITREC n

The following is a decision variant of the computational problem seen in Subsection 5.1.
Inputs: (i) n ∈ N ≥ 11 and (ii) k ∈ N .
Decision question: Does there exist a fit-rec n = S n of n such that F S n ≥ k ?
Output: YES (meaning, such a fit-rec of n exists) or NO (meaning, no such fit-rec of n exists), as appropriate.
NOTE 5.2 . There is no need of a certificate candidate since k ∈ N ensures the output is YES by dint of Proposition 4.2. As for the inputs, it is mandatory that they be free from any error, as also that they be logically consistent with one another.

6. An Algorithm to Show FITREC n Is in NP

A “step” in an algorithm is a primitive operation executed by the algorithm. In dealing with any algorithm, there is a presupposition that every primitive operation to be executed by the algorithm is unambiguously defined. Since we furnish algorithms only in lines of pseudocodes, we adopt the following point of view for the notion of number of steps (as in [3]): we assume that each execution of the j t h line of the pseudocode takes t j steps (meaning, t j primitive operations).
Reading a character, updating the value stored in the address of a variable, elementary mathematical and logical operations are some examples of primitive operations in algorithms. Additional information on primitive operations are in [3].
The following algorithm is shown to verify that FITREC n is in NP.
Algorithm FITREC-in-NP
BEGIN
1. Read n
2. if  n ∈ N ≥ 11
3.
then print “YES, exists a fit-rec n = S n of n such that F S n ≥ k , providing k ∈ N .” and STOP
4.
else print “ERROR. The problem FITREC n requires n to be in N ≥ 11 .” and STOP
5. endif
STOP
Proposition 6.1.The algorithm FITREC-in-NPis feasible and correct.
Proof. Line 1 of the algorithm reads the value of n. This clearly terminates in a finite number of steps.
Line 2 checks if n ∈ N ≥ 11 . This step also terminates in a finite number of steps.
As for each of line 3 and line 4, printing the respective decisions clearly terminates in a finite number of steps. So does line 5. Note that the decision in line 3 is justified by Proposition 4.2. Consequently, FITREC-in-NP is feasible.
The correctness of the algorithm is a direct consequence of Proposition 4.2. •
Proposition 6.2.Given an input n ∈ N ≥ 11 , FITREC-in-NPruns in polynomial time in ⌈ l o g n ⌉ .
Proof. The total number (say, T) of steps executed by the algorithm FITREC-in-NP is the sum of the numbers of steps for all the lines executed. Suppose that one execution of the line j requires t j steps and that this line is executed exactly r j times when the algorithm is executed once. Then t j r j is the number of steps consumed by the line j in one execution of the algorithm.
In one execution of the algorithm, each line is executed once. Hence, for j = 1 , … , 5 , t j r j = t j .
The input is n ∈ N ≥ 11 and the input size is ⌈ l o g n ⌉ (Note 5.1 in Subsection 5.1). The number of steps required for each of line 1 through line 4 is at most ⌈ l o g n ⌉ . The endif line requires only a constant number of steps in any algorithm [3]. Hence T < 5 ⌈ l o g n ⌉ . •
Proposition 6.3.To each instance n of FITREC n there is a certificate that is verified by the algorithm FITREC-in-NPin polynomial time in ⌈ l o g n ⌉ .
Proof. By dint of Proposition 4.2, Subsection 5.2 and Proposition 6.2, the conclusion holds without the need for any certificate. •

7. FITREC n Is in NP but Not in P

Proposition 7.1. 2 r (and consequently 2 r − 1 ) cannot be bounded by a r b for any positive real constants a and b as r increases over R .
Proof. Straightforward. •
Proposition 7.2.The problem FITREC n is inNP .
Proof. Consequence of Proposition 6.2 and Proposition 6.3. •
Proposition 7.3.The problem FITREC n is not inP .
Proof. Let n ∈ N ≥ 11 be the input instance for the computation problem FITREC n (Subsection 5.1) and let r = ⌈ l o g n ⌉ be the input size. It is a straiogtforward exercise that n ≥ 2 r − 1 .
Let ALGFIT n be a given feasible algorithm that outputs a fit-rec n = S n of n such that F S n = k ≥ n . Let F n = x 1 , … , x q be the set of the facial digits of n.
To compute F S n , the algorithm ALGFIT n has to read each facial digit x j (of n) is f x j , S n times, where f x j , S n is the frequency of the digit x j in S n . Then each such reading is a step executed by the algorithm. Note that all these (finitely many) readings of the frequencies have to be done by the algorithm in addition to computing the desired fit-rec n = S n .
Clearly, each of these readings (of the facial digits) takes at least one step, as a result of which ALGFIT n takes at least Σ j = 1 q f x j , S n steps to run once fully.
But then Σ j = 1 q f x j , S n = F S n = k ≥ n ≥ 2 r − 1 . By Proposition 7.1, it follows that ALGFIT n cannot run in polynomial time (in r). •

8. Conclusions

P ≠ NP, follows from Proposition 7.2 and Proposition 7.3.

Acknowledgments

This research was supported financially by Niels Abel Foundation, Palakkad, Kerala State, India.

References

  1. Bovet, D. P.; Crescenzi, P. Introduction to the theory of complexity; Prentice Hall: London, UK, 1994. [Google Scholar]
  2. Cook, S. The P versus NP problem. 2000. Available online: http://www.claymath.org/millennium/P.
  3. Cormen, T. H.; Leiserson, C. E.; Rivest, R. L.; Stein, C. Introduction to Algorithms; MIT Press: USA, 2009. [Google Scholar]
  4. Dharmarajan, R.; Ramachandran, D. A problem in Moon-Moser graphs to show P does not equal NP. Glob. J. Pure Appl. Math. Also available on. 2025, 21(1), 51–73. [Google Scholar]
  5. Dharmarajan, R.; Ramachandran, D. A problem in power sets shows P does not equal NP. Available online: http://www.preprint.org.
  6. Harris, J.M.; Hirst, J.L.; Mossinghoff, M.J. Combinatorics and Graph Theory, second ed.; Springer: New York, 2008. [Google Scholar] [CrossRef]
  7. Savage, J. E. Models of Computation; Addison Wesley: Reading, USA, 1998. [Google Scholar]
  8. Stoll, R. R. Set Theory and Logic; Courier Corporation, USA, 2012. [Google Scholar]
  9. Trakhtenbrot, B. A. A Survey of Russian Approaches to Perebor (Brute-Force Search) Algorithms. IEEE Ann. Hist. Comput. 1984, 6(4), 384–400. [Google Scholar] [CrossRef]
  10. Wilf, H. S. Algorithms and Complexity, Internet Edition, Summer. 1994. [Google Scholar]
  11. Woeginger, G. J. Exact algorithms for NP-hard problems: A survey. Combinatorial Optimization - Proc. 5th Intl. Workshop, Aussois, France, 2003; pp. 185–207. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.