Various solutions to programming and mathematical challenges