Balancing a disc

edit
 
Balancing a circle

Let the triple   be the angle, distance and weight of a particle from the centre of the disc.

Let P be some particles on a unit disk such that a given diameter axis   means that the sum of perpendiculars from P to   is zero. Let   be a distinct other axis with the same property.

Prove that all   have this property.

Consider two axis orthogonal to each other and a set of weights with the above property (which can be achieved by calculating the position of the   weight after the first   weights have been placed).

Note that the perpendiculars to a new rotated orthogonal pair of axes from a given weight all lie on the circumference of the circle centred halfway between the origin and the weight, radius half the full distance from O to W.

This applies to each weight, and so there are a set of circles each with a common point on the circumference of the origin and the new axes intersect with these circles at the new distances.

From trigonometric identities, we have:

 

We know:

 

If   is the original angle, and   is the rotated amount, then we have:

 

and summing:

 
 

The resultant weighted vector at the origin is therefore zero, and this is invariant over axis rotation.

Or, the lines midway between two are balanced, and this process continues ad infinitum.

Convex function proofs

edit

Consider  ,  . Then:

 

 

 

 

 

 


Consider  ,  . Then:

 

 

 

 

So need to prove:

 

or

 

or, dividing by  :

 

So:

 

 

 

 

Catalan q-polynomials

edit

The Catalan q-polynomials   count the number of blocks present in the diagram under the diagonal height k, and start

  •  
  •  
  •  
  •  
  •  
 

The sum of the coefficients of   give  .

To generate the next level, we add a horizontal and vertical step. The horizontal step is always placed at the origin, and the vertical step can be placed anywhere off the bounding diagonal, and is the first time the path touches the diagonal.

The first path from the convolution is inserted along the (k-1)-th diagonal created by the two endpoints of the new steps, and the second is placed along the k-th diagonal.

With Dyck words, where the new template is  , where   is a Dyck word of length k. The X step is always first, and the Y step comes after a k-length Dyck word.

The new polynomial is therefore the heights of the previous polynomials, plus the rectangle created by the insertion.

 

For example,  .

Cubic polynomial

edit

Let

 

The local minima and maxima are given by the zeroes of the differential of  .

 

If   then (c is negative)

 

and   means

 
 
 

Round Robin

edit
  • 12 34 56
  • 13 26 45
  • 14 25 36
  • 15 23 46
  • 16 24 35
  • 12 34 58 67
  • 13 24 57 68
  • 14 25 36 78
  • 15 26 37 48
  • 16 27 38 45
  • 17 28 35 46
  • 18 23 47 56

GF for cubes

edit
 

https://www.wolframalpha.com/input?i=%281%2B4x%2Bx%5E2%29%2F%281-x%29%5E4

The general relation is given by the Eulerian numbers.

Proof

edit

The GF's for   are  .

Therefore

 

generates  .

This equals

 
 

and generates the sequence  .

https://www.wolframalpha.com/input?i=%281%2B4x%2Bx%5E2%29%2F%281-x%29%5E3

Multiplying by   gives the partial sums, and so

 

generates the sequence  .

Again gives

 

generates the sequence  .

https://www.wolframalpha.com/input?i=%281%2B4x%2Bx%5E2%29%2F%281-x%29%5E5

Binomials

edit

Prove

 
 

Consider

 

where

 

so

 

and

 

The meaning of logic

edit

TRUTH

0000 (0) FALSE
0110 (6) XOR
1001 (9) NXOR
1111 (F) TRUE

IDEMPOTENT

0001 (1) AND
0011 (3) A
0101 (5) B
0111 (7) OR

INJECTIVE

0100 (4) LT
1100 (C) NB
1101 (D) LTE
1110 (E) NAND

SURJECTIVE

0010 (2) GT
1000 (8) NOR
1011 (B) GTE
1010 (A) NA

Partial sums of binomials

edit
 
 
 2.

GF for Catalan numbers

edit

Catalan number

Start with the GF for the central binomial coefficient.

 

Integrating and setting the constant to   from the case   yields

 

Divide by x to get

 

Primitive roots

edit

Primitive root modulo n

The order of an element is the smallest k where  .

k divides  . Testing a candidate against each possible k returns negative if and only if the candidate is a primitive root.

a/k 1 2 3 4 5 6
1 1 1 1 1 1 1
2 2 4 1 2 4 1
3 3 2 6 4 5 1
4 4 2 1 4 2 1
5 5 4 6 2 3 1
6 6 1 6 1 6 1

Fermat's theorem on sums of two squares

(5) can be proved by Euler's criterion. It also tells us that if  ,

 

which is the sum of two squares by (1). (2), (3) and (4) can then be used to find it.

Finding primitive roots for primes

edit

For each prime p of p-1, remove k^p from 1,..,p-1 as k runs over the same range. Only primitive roots remain.

Fermat's little power test

edit
  if and only if  

For example,   is never divisible by 13, 17, etc..., but is by 29.

Chinese Remainder Theorem

edit

Say  , and also   with p,q primes, and a,b least residues.

Note that   is   and  . Similarly   is   and  .

Therefore   and  , and so  .

Also  , where  

So the solution is  

e.g.  .

Coordinates of circumcentre

edit

Let   be coordinates  . Then the midpoints of AB and AC are

 
 

The perpendiculars are

 
 

and the equations of the perpendiculars through the midpoints are

 
 

with equality when

 
 

so

 
 

and then

 
 

so

 

Graphs

edit

Hamiltonian cycles

edit

Hamiltonian cycles

Generate the permutations of all vertices. Remove all those with non-adjacent vertices.

Cuts

edit

Two cuts are adjacent if the corresponding partitions differ by only 1 vertex.

Base conversion

edit

An integer in base b can be written as

 

and the same integer in base d is

 

If  , then the first equation becomes

 

Expand this using the binomial formula to get

 

and collect by like terms in d to get the second equation.

 

because

 

using  . This only changes the ordering of the   pairs and not the function.

We want to add two bytes A and B. We use auxiliary bytes C and D to store the carries and answer, and a carry flag for the final bits.

Let C be initially zero, and a,b,c,d be aligned bits.

Then   and  

where   is XOR and c' is the next carry bit.

Homotopy

edit

If f and g are continuous functions on  , let  .

If x is fixed,

 

which is continuous as   is constant.

If   is fixed,

 

which is continuous because   are.

3-sphere

edit

3-sphere

The notion of gluing can be extended from the 2d 'above/below' into 3d with inside (the bounding sphere)/outside.

As a 3-sphere can be stereographically projected to the one point compactification of   so can every manifold homeomorphic to it.

Note that the removal of the 'one-point' creates a hole.

The stereographic projection of the 2-sphere onto the 3-sphere matches to the inverse projection of the 4-sphere.

A torus isn't locally Euclidean as the inner ring necessarily has a higher measure (point density) than the outer ring.

Client-Vendor-Bank model

edit

The Client-Vendor-Bank model (CVB) involves the oAuth model.

Only the Authentication and Authorization layers are used, along with vendorId and vendorSecret. These are registered with the Bank.

The steps involved are:

1. C sends V transaction request

2. V asks C for Authentication with vendorId and transaction details from B

3. B replies to V with the AuthCode for the transaction

4. V posts AuthCode, vendorId and vendorSecret to B

5. B commits the transaction and sends receipt to V

6. V sends receipt to C

This model has minimal external interference, and is secure as B has two potentially conflicting items for the same transaction.

Catalan interpretation

edit

The 15 Bell numbers for n = 4 with the Catalan equivalent:

  • 1234 - (((())))
  • 1 234 - ()((()))
  • 2 134 - (()(()))
  • 3 124 - ((()()))
  • 4 123 - ((()))()
  • 12 34 - (())(())
  • 13 24 - crossed
  • 14 23 = ((())())
  • 12 3 4 - (())()()
  • 13 2 4 - (()())()
  • 14 2 3 - (()()())
  • 23 1 4 - ()(())()
  • 24 1 3 - ()(()())
  • 34 1 2 - ()()(())
  • 1 2 3 4 - ()()()()

Congruent number

edit

The congruent number problem asks which square numbers are in an arithmetic progression of 3.

Are there higher powers such that 3 lie in an AP?

That is

 
 

or

 

so

 

Lattice walks

edit

A random walk on a 2d grid arrives at coordinate   after z steps, where

 

with  .

This leads to the definition

 

Cubic equation

edit

If

 

then

 

e.g.

 

because

 

Also, with  

 
 
 
 
 

Distributivity

edit

OR is  , AND is  . They are commonly written as   and xy where   is assumed.

In  , they are  .

OR distributes, so  . This might seem unusual as it looks like  .

Proof 1

edit
 

Proof 2

edit
 

0^0=1

edit

 

 

 

 

 

 

 

Integration

edit

Consider the function   on   at the points  .

The area of each rectangle at point   is   and the sum of all the rectangles is

 

which is   times the sum of powers given by

 

so

 

and as  

 

Square pyramid numbers

edit

Square pyramidal numbers

1222222333333
1222222333333
1222222333333
1222222333333
1222222333333
1222222333333
444444555555

The 1,4 and 5 blocks are vertical   squares. Block 6 is split into   and  

1222222333336
1222222333336
1222222333336
1222222333336
1222222333336
1222222333336
4444445555556

This is an   box with an   'interior'.

Find a pair

edit

Imagine the sample space

000
001
010
011
100
101
110
111

If you pick a random entry from each row, you will have picked both a 0 and a 1 from at least one column.

Proof

edit

Say you pick column c from row r, and it is b. Then all the rows with   in column c have this column removed from the options, which halves the size of the sample space. After n turns therefore the sample space is reduced from   to 1, but the final row has no available moves.

Determinants

edit

determinant

 

Conic sections

edit

Eccentricity yields

 

(from Parabola#Axis of symmetry parallel to the y axis).

so the equations for the conic sections are

 

or

 

Harmonic numbers

edit

Harmonic number

Prove

 

e.g.

 
 

Proof

edit
 
 
 
 
 

Addition is P

edit

We wish to add an arbitrary (finite) list of positive integers with a given maximum size, e.g. 4,12,2,7,0. The 0 indicates the end of the list.

A ruple is executed in the following order:

1. Write 2..Move 3. State

There are no 'if' statements (hence 'P' - an 'if' statement is non-deterministic to a qubit). Movement is always R, and no symbol is written except for at 0.

The transition function is a basically hand-written sum table, e.g.

symbol 1 2 3 4 ...
state 0: 1 2 3 4 ...
state 1: 2 3 4 5...
...
state k: k+1 k+2 k+3 k+4...

Symbol 0 writes the current state down as a symbol.

state k, symvol 0, write k .

Complex exponentiation

edit
 
 

Symmetric group

edit

Symmetric group

If   swaps the a-th element with the b-element, then   left-shifts a permutation by 1 element, hence  .

Cross product

edit

Cross product

 


Exact sequence

edit

The first isomorphism theorem states that the kernel of H is a normal subgroup of G.

Therefore a group homomorphism must take a group to a group with a normal subgroup for the sequence to be an exact sequence.

Fourier series

edit

Fourier series

Fourier transform

It is assumed that function   can be expressed as the integral of a complex linear combination of complex exponentials, where   is not necessarily periodic.

 

Multiplying both sides by   gives

 
 
 
 
edit

If the boundary is a sphere then the equations are harmonic, i.e. the Laplacian is zero. The outside of a sphere is unbounded, and therefore the pressure is zero.

 

Derivation of the Navier–Stokes equations#Incompressible Newtonian fluid

If we ignore the 'extra' bit, there are therefore two PDE's to solve, namely, no pressure

 

and no movement

 

Analytic functions

edit

Analyticity of holomorphic functions

 

Let  , with  .

Then, if f is holomorphic,

 

i.e.   naximizes f.

Diffferentiation of theta function

edit
 
 

At  

 
 

Second derivative

edit
 
 

At  

 
 

!!!

Area of a parallelogram

edit
 

From the picture, the area of the parallelogram is

 

2d random walks

edit

Random walks on a 2d lattice are governed by

 

After   moves, we are at position   where   is even.

Let  . Then the number of paths from   to  ) is

 

Proof

edit
 
 
 

Vertex neighbours

edit

Vertex cover

Let V be a subset of vertices and V' be its 1-adjacent neighbourhood.

If  ,   and  

then V is a perfect cover in G.

Colouring

edit

Graph coloring#Upper bounds on the chromatic number

 

because removing an independent set of vertices that has no candidates reduces the vertex degree by at least 1.