Advent of code 2015/25
Ajax Direct

Answer

Part 1 :
Part 2 :
[$y, $x] = $input->numbers();
$t = array_sum(range(1, $x + ($y - 2))) + $x;

$solution_1 = 20151125;
for ($i = 0; $i < $t - 1; $i++) {
    $solution_1 = ($solution_1 * 252533) % 33554393;
}

$solution_2 = "⭐";