Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)OL
Posts
0
Comments
6
Joined
2 yr. ago
  • For the case that n = 0 (before the first run of the loop), x(0) = 1.

    For the first actual case, n = 1. X(1) = x(0)3n = 131 = 3.

    For the next case, n = 2. X(2) = x(1)3n = 332 = 18.

    For the next case, n = 3. X(3) = x(2)3n = 1833 = 162.

    For the next and last case, n = 4. X(4) = 16234 which I'm not computing. The computer value of x(4) is the value of the product loop.

    If that doesn't help, I could try helping again to rephrase, but I'm not sure what else to add.

  • I think it would be much better to write it in another language, but here's another way to do the second one (this is on Visual Basic):

     undefined
        
    Dim n as long
    Dim product as long
    Product = 1
    
    For n = 1 to 4
    Product = product * 2 * n
    Next n