# US 2014/0207839 A1 · Spatial Arithmetic Method of Integer Factorization

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2014/0207839 A1
- Document ID: US20140207839A1
- Status: Published application
- Kind: A1
- Application number: 14/191,384
- Filed: 2014-02-26
- Published: 2014-07-24
- Earliest claimed: 2011-07-26
- Inventors: Sherwin Han
- Web page: https://patentgrep.com/patent/US20140207839A1

## CPC

- G06F 17/10: Complex mathematical operations {(function generation by table look-up G06F1/03; evaluation of elementary functions by calculation G06F7/544)}
- G06F 7/38: Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer system represents numbers as three-dimensional relations, which may be represented as collections of points in three-dimensional space. The three-dimensional representations may use values of +1 and −1 as complements of each other to overcome limitations of binary representations which use values of 1 and 0 to represent numbers. The computer system may use such three-dimensional relations to perform arithmetic and to factorize numbers.

## Claims

### Claim 1

A method performed by at least one computer processor executing computer program instructions stored on a non-transitory computer-readable medium, the method comprising:
(A) selecting an order of x, y, and z dimensions;
(B) representing a product P as a binary number having a first plurality of bits;
(C) creating and storing a mapping of the first plurality of bits to the ordered x, y, and z dimensions in a first repeating pattern;
(E) obtaining a complement C of the product P,
wherein the complement C includes a second plurality of bits;
wherein C=1n2−P;
wherein B is equal to the number of bits in P;
wherein n=(B/2) if B is even;
wherein n=(B+1)/2 if B is odd;
wherein 1n2 is a binary number of length n consisting solely of 1s;
(F) creating and storing a mapping of the second plurality of bits to the ordered x, y, and z dimensions in a second repeating pattern;
(G) constructing an empty diagonal form representation of partial products of a first and second factor of the product P;
(H) recursively filling the diagonal form representation with bits based on the product P and the divider D; and
(I) identifying the first and second factor of the product P based on the filled diagonal form representation.

### Claim 2 (depends on 1)

The method of claim 1, wherein the order selected in (A) is x, y, z.

### Claim 3 (depends on 1)

The method of claim 1, wherein the order selected in (A) is y, z, x.

### Claim 4 (depends on 1)

The method of claim 1, wherein the order selected in (A) is z, x, y.

### Claim 5 (depends on 1)

The method of claim 1, wherein (I) comprises identifying the first factor based on a first edge of the diagonal form representation.

### Claim 6 (depends on 5)

The method of claim 5, wherein (I) comprises identifying the second factor based on a second edge of the diagonal form representation.

### Claim 7 (depends on 1)

The method of claim 1, wherein recursively filling the diagonal form representation in (H) includes a first step comprising copying the value of the leftmost bit of the product P into the four corners of the diagonal form representation.

### Claim 8 (depends on 7)

The method of claim 7, wherein (H) includes a second step comprising subtracting the values in the four corners of the diagonal form representation from corresponding bits of the product to produce a modified product.

### Claim 9 (depends on 8)

The method of claim 8, wherein (H) includes a third step comprising copying the inverse of the leftmost bit of the complement C into bits in the diagonal form representation which are adjacent to the four corners of the diagonal form representation.

### Claim 10 (depends on 9)

The method of claim 9, wherein (H) includes a fourth step comprising applying a parallel rule to the diagonal form representation, wherein the parallel rule specifies that:
any row in the diagonal form representation that contains a zero must contain all zeroes; and
any diagonal column in the diagonal form representation that begins with a zero must contain all zeroes.

### Claim 11 (depends on 1)

The method of claim 1, wherein each of the first plurality of bits either has a value of 1 or a value of −1.

### Claim 12

A non-transitory computer-readable medium comprising computer program instructions executable by at least one computer processor to perform a method, the method comprising:
(A) selecting an order of x, y, and z dimensions;
(B) representing a product P as a binary number having a first plurality of bits;
(C) creating and storing a mapping of the first plurality of bits to the ordered x, y, and z dimensions in a first repeating pattern;
(E) obtaining a complement C of the product P,
wherein the complement C includes a second plurality of bits;
wherein C=1n2−P;
wherein B is equal to the number of bits in P;
wherein n=(B/2) if B is even;
wherein n=(B+1)/2 if B is odd;
wherein 1n2 is a binary number of length n consisting solely of 1s;
(F) creating and storing a mapping of the second plurality of bits to the ordered x, y, and z dimensions in a second repeating pattern;
(G) constructing an empty diagonal form representation of partial products of a first and second factor of the product P;
(H) recursively filling the diagonal form representation with bits based on the product P and the divider D; and
(I) identifying the first and second factor of the product P based on the filled diagonal form representation.

### Claim 13

A method performed by at least one computer processor executing computer program instructions stored on a non-transitory computer-readable medium, the method comprising:
(A) selecting an order of x, y, and z dimensions;
(B) representing a number N as a binary number having a first plurality of bits;
(C) creating and storing a mapping of the first plurality of bits to the ordered x, y, and z dimensions in a first repeating pattern;
(D) creating and storing a three-dimensional representation of the binary number based on the mapping of the first plurality of bits to the ordered x, y, and z dimensions in the first repeating pattern; and
(E) performing an arithmetic operation on the binary number based on the three-dimensional representation of the binary number.

### Claim 14 (depends on 13)

The method of claim 13, wherein each of the first plurality of bits either has a value of 1 or a value of −1.

### Claim 15

A non-transitory computer-readable medium comprising computer program instructions executable by at least one computer processor to perform a method, the method comprising:
(A) selecting an order of x, y, and z dimensions;
(B) representing a number N as a binary number having a first plurality of bits;
(C) creating and storing a mapping of the first plurality of bits to the ordered x, y, and z dimensions in a first repeating pattern;
(D) creating and storing a three-dimensional representation of the binary number based on the mapping of the first plurality of bits to the ordered x, y, and z dimensions in the first repeating pattern; and
(E) performing an arithmetic operation on the binary number based on the three-dimensional representation of the binary number.
