2018 Macedonia JBMO TST

1

Determine all positive integers n>2, such that n=a3+b3, where a is the smallest positive divisor of n greater than 1 and b is an arbitrary positive divisor of n.

2

We are given a semicircle k with center O and diameter AB. Let C be a point on k such that COAB. The bisector of ABC intersects k at point D. Let E be a point on AB such that DEAB and let F be the midpoint of CB. Prove that the quadrilateral EFCD is cyclic.

3

Let x, y, and z be positive real numbers such that x+y+z=1. Prove that (x+y)3z+(y+z)3x+(z+x)3y+9xyz9(xy+yz+zx). When does equality hold?

4

Determine all pairs (p,q), p,qN, such that (p+1)p1+(p1)p+1=qq.

5

A regular 2018-gon is inscribed in a circle. The numbers 1,2,...,2018 are arranged on the vertices of the 2018-gon, with each vertex having one number on it, such that the sum of any 2 neighboring numbers (2 numbers are neighboring if the vertices they are on lie on a side of the polygon) equals the sum of the 2 numbers that are on the antipodes of those 2 vertices (with respect to the given circle). Determine the number of different arrangements of the numbers. (Two arrangements are identical if you can get from one of them to the other by rotating around the center of the circle).