How will I know the equation of a sequence if it is not arithmetic nor geometric sequence?

no general answer. Just have to learn various techniques for working it out. That only comes from doing dozens of problems.