% Unit 2 (MATLAB Course @ UAM)
% (c) Alexander Knebe

%======================================
% simple log3() function
%======================================
clear all, close all, clc

f = 27;
f = 243;
f = 531441;

log(f)/log(3)

n = 0;
while f > 1
    f = f / 3;
    n = n + 1;
end
n