I can’t tell you what the specific GPIO number is which maps where, but if you see “permission denied” while using with sudo, then very likely the GPIO is already in use by something else. However, if you check the content of “/sys/kernel/debug/gpio”, then it should provide a listing of current use.
If the GPIO was not exported, then the file itself would not have shown up to perform the echo to.