first commit

This commit is contained in:
=
2024-02-07 15:06:50 +01:00
commit af02e453c1
55 changed files with 2166 additions and 0 deletions

12
p28/solution.jl Normal file
View File

@@ -0,0 +1,12 @@
function solution(n)
if n % 2 == 0
return -1
end
if n == 1
return 1
else
sum_n = 4*n^2 - 6*(n-1)
return solution(n-2) + sum_n
end
end