General formula of alkanes is:

CnH2n+2

CnH2n+1

CnH2n-2

CnH2n