Simple 505-Vertex Graph

Consider a simple graph with 505 vertices. Each vertex is joined to exactly N N others. How many different possible (non-negative, integer) values of N N can there be?

Details and assumptions

A simple graph does not have multiple edges between vertices or self loops.


The answer is 253.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

8 solutions

Matt McNabb
Nov 3, 2013

To count the total number of edges, we can count the number of edges leaving each vertex, and divide the result by 2 2 since we counted each edge twice. In this case, for a graph of M = 2 m + 1 M = 2m+1 vertices where each vertex has N N connections, the total number of edges is E = ( 2 m + 1 ) N 2 E = {(2m+1)N \over 2}

from which it follows that N N must be even. Also , clearly we must have n < m n < m .

Now we will show that every possible value 2 n 2n has an associated graph.

Label the vertices V 0 , V 1 , V 2 , . . . , V 2 m V_0, V_1, V_2, ..., V_{2m} and let G n G_n be the graph with these vertices such that vertices V i V_i and V j V_j are connected by an edge if and only if i j x m o d M i - j \equiv x \mod M or i j x m o d M i - j \equiv -x \mod M for some integer 0 < x n 0 \lt x \le n .

It follows directly from this definition that any particular vertex V a V_a is connected to all vertices V b V_b such that b a ± x m o d M b \equiv a \pm x \mod M for all 0 < x n 0 \lt x \le n .

These possible values of b b are all distinct because 2 n < M 2n < M . Therefore V a V_a is connected to exactly 2 n 2n vertices, and G n G_n is a graph where all vertices are connected to exactly 2 n 2n others.

Since n n can range from 0 0 to m m in this proof, and if M = 505 M = 505 then m = 252 m = 252 , there are 253 \boxed{253} possible values of n n .

Nice solution! Dang, forgot about the N=0 case!!!

Russell FEW - 7 years, 7 months ago

nice and concrete solution!

Nhat Pham - 7 years, 7 months ago

It is known that a simple regular graph of degree N N and number of vertices v v will exist iff v N + 1 v \geq N+1 and v n 0 ( m o d 2 ) vn \equiv 0 \pmod{2} . Here we have v = 505 v=505 . The necessary conditions are:

  • 505 N 0 ( m o d 2 ) N 2 ( m o d 2 ) 505N \equiv 0 \pmod{2} \implies N \equiv 2 \pmod{2}
  • N 504 N \leq 504

There are 504 2 + 1 = 253 \left \lfloor \frac{504}{2} \right \rfloor + 1= \boxed{253} possible values of N N .

Can you show how you got v n 0 ( m o d 2 ) vn\equiv0\pmod{2} ?

Daniel Wang - 7 years, 7 months ago

Log in to reply

It is a fairly well known result. You can see the proof here .

Sreejato Bhattacharya - 7 years, 7 months ago
Simone Bacchio
May 20, 2014

Let's start to analyze simpler settings. 505 is an odd number, so we'll consider only settings with an odd number of vertice.

  • 1 vertice: this is the simplest graph, N can only be 0 (no edges). N=0, obviously, is a valid solution for all graphs.

  • 3 vertices: N could be 0, 1, 2. N=0 is acceptable. N=1 is not an acceptable solution; indeed only an edge (N=1) means to join pair of vertices, but the vertices are odd, therefore there will always be one of them unpaired. N=2, in all graphs, means to join sequentially the vertices and to build a shape; so it's always possible. Concluding for 3 vertices N can be 0 and 2.

  • 5 vertices: N could be 0, 1, 2, 3, 4. For the above reasons 0 is acceptable, 1 is unacceptable, 2 is acceptable. N=3 is unacceptable indeed there will always be a vertice with one more or less edge then 3. N=4 is acceptable and it means join all vertices together. Whit n vertices it's always possible to use n-1 edges, joining all vertices together; so N=n-1 it' always acceptable. So for 5 vertices N can be 0, 2 and 4

  • Trying more with 7 vertices you can find that N can be 0, 2, 4 and 6.

We can conclude for induction that N with n (where n is an odd integer) vertices can always be an even number between 0 and n-1 including. So all possible N are (n+1)/2 and for 505 vertices the answer is 253.

Why is the following not a proper proof by induction?

Calvin Lin Staff - 7 years ago
Marek Bernat
Nov 6, 2013

N N must be even for there are 505 N / 2 505N / 2 edges. We show that every possible even N N actually occurs. The construction is as follows -- arange vertices in a circle. Connect every vertex to a vertex with a distance less or equal than N / 2 N/2 (there are precisely N N such neighbors). This defines a graph because the distance function is symmetric. We are done and so the answer is ( 505 + 1 ) / 2 = 253 (505 + 1) / 2\ = {\bf 253} (don't forget the disconnected graph with no edges!).

Vladimir Babev
Nov 5, 2013

According to Erdős–Gallai theorem ( http://en.wikipedia.org/wiki/Erd%C5%91s%E2%80%93Gallai_theorem ) N satisfies the condition if and only if N is even. Even numbers between 0 (inclusive) and 505 are 253.

Vincent Huang
Nov 7, 2013

Well if there are 505 vertices, clearly the number of connections is 505N/2, which must be an integer. This occurs when N=0,2,4,...504 or 253 values of N

Soham Chanda
Nov 4, 2013

A graph must have even number of odd vertices.

The proof of this is the same as the first worked example here .

Since it is given that the number of vertices is 505(which is undeniably odd :P) and each vertices have same number of edges protruding from it,the number of edges ie N N must be even. The number of even numbers upto 505 is 253,and thus we arrive at the answer.

Moderator note:

As pointed out by Sreejato, this solution only shows a necessary condition, but not a sufficient condition.

You also have to show the existence of such a graph.

Sreejato Bhattacharya - 7 years, 7 months ago

Log in to reply

So where is your counterexample?

Soham Chanda - 7 years, 7 months ago

Log in to reply

If you're posting a proof it's on you to prove it, not just to say "well nobody has posted a counterexample" :)

Matt McNabb - 7 years, 7 months ago

Log in to reply

@Matt McNabb But is it not enough to have the degrees even?

Soham Chanda - 7 years, 7 months ago

Log in to reply

@Soham Chanda It is, but you didn't prove that it is. Just based on what you've written, it could have turned out that there are some such graphs for which you can't draw edges in such a way that all vertices have the same number of edges.

Matt McNabb - 7 years, 7 months ago

Unfortunately, I cannot provide any counterexample, as the sufficient condition holds true (which you skipped).

Sreejato Bhattacharya - 7 years, 7 months ago
Daniel Liu
Nov 3, 2013

We start by counting the total edges. 505 505 vertices with N N edges per vertex means 505 N 505N edges, but since each edge is counted twice from the two vertices it connects, we divide by 2 2 to get 505 N 2 \dfrac{505N}{2} edges. Therefore N N is even. Since 0 N 504 0\le N\le 504 , there are 253 \boxed{253} possibilities for N N .

You also have to show such a graph exists.

Sreejato Bhattacharya - 7 years, 7 months ago

Did you manually alter the default profile image in Brilliant?

Soham Chanda - 7 years, 7 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...