Latex syntax error

  • Unknown's avatar

    I have posted some math equations but it seems that my code was wrong :


    2. cmr $latex (1^2 + 2^2 + …. + n^2) = frac{{n(n + 1)(2n + 1)}} {6} $ (1)
    ta có với $latex n = 1 $ thì $latex 1^2 = frac{{3.2}}{6} = 1 $ đúng

    giả sử n=k đúng thì

    $latex 1^2 + 2^2 + … + k^2 = frac{{k(k + 1)(2k + 1)}}{6}$

    vậy n=k+1 thì

    $latex 1^2 + 2^2 + … + k^2 + (k + 1)^2 = frac{{k(k + 1)(2k + 1)}}{6} + (k + 1)^2 = frac{{(k + 1)(2k^2 + 7k + 6)}}{6} = frac{{(k + 1)(k + 2)(2k + 3)}}{6} $ “

    Please help me !

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    insert a backslash () before “frac”. => frac

    You can use THIS SITE for checking syntax while typing. (it also has predefined tools like inserting fractions and more)

  • The topic ‘Latex syntax error’ is closed to new replies.